Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)