Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jrschumacher/symfony-component-httpfoundation-csvresponse
CSV response for Symfony HttpFoundation using Goodby/CSV
https://github.com/jrschumacher/symfony-component-httpfoundation-csvresponse
Last synced: about 2 hours ago
JSON representation
CSV response for Symfony HttpFoundation using Goodby/CSV
- Host: GitHub
- URL: https://github.com/jrschumacher/symfony-component-httpfoundation-csvresponse
- Owner: jrschumacher
- Created: 2014-06-27T20:24:25.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-28T23:25:04.000Z (over 10 years ago)
- Last Synced: 2024-10-09T22:21:47.054Z (about 1 month ago)
- Language: PHP
- Size: 113 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CSV Response for Symfony HttpFoundation
[![Build Status](https://travis-ci.org/jrschumacher/symfony-component-httpfoundation-csvresponse.png)](https://travis-ci.org/jrschumacher/symfony-component-httpfoundation-csvresponse)## Use
It should be noted CsvResponse extends StreamedResponse and uses [goodby/csv](https://github.com/goodby/csv) library. The use of this response is relatively simple.
``` php
use Symfony\Component\HttpFoundation\CsvResponse;
$data = array(
array('John Smith', '[email protected]'),
array('Jane Smith', '[email protected]')
);new CsvResponse($data);
```
### Further Use
For further use please see [goodby/csv](https://github.com/goodby/csv)