Download the PHP package ilbee/csv-response without Composer
On this page you can find all versions of the php package ilbee/csv-response. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ilbee/csv-response
More information about ilbee/csv-response
Files in ilbee/csv-response
Download ilbee/csv-response
More information about ilbee/csv-response
Files in ilbee/csv-response
Vendor ilbee
Package csv-response
Short Description Symfony component allow you to respond CSV contents directly in your controller
License MIT
Homepage https://github.com/ilbee/csv-response
Package csv-response
Short Description Symfony component allow you to respond CSV contents directly in your controller
License MIT
Homepage https://github.com/ilbee/csv-response
Please rate this library. Is it a good library?
Informations about the package csv-response
CSV Response
A Symfony component that lets you return CSV file downloads directly from your controllers.
Table of Contents
- Features
- Installation
- Usage
- Which class should I use?
- Contributing
- Credits
- License
- Full Documentation
Features
- Two response classes for different use cases:
| Class | Extends | Best for |
|---|---|---|
CSVResponse |
Response |
Small to medium datasets (buffered in memory) |
StreamedCSVResponse |
StreamedResponse |
Large datasets (streamed row by row, constant memory) |
- Automatic header row generation from array keys (can be disabled)
- Configurable separator (semicolon by default, comma, etc.)
- Custom file name support
- DateTime objects are automatically formatted (configurable format)
- Optional UTF-8 BOM for Excel compatibility
- CSV injection protection (formula sanitization)
- Optional row limit (
maxRows) to prevent unbounded memory usage - Strict type handling: clear errors for unsupported object types
- Accepts arrays, iterables, generators, or callables as data source
- No configuration required — just install and use
Installation
Usage
Basic example
This triggers a download of CSVExport.csv with the content:
Streaming large exports
Custom file name and separator
UTF-8 BOM (for Excel)
Custom date format
Limit number of rows
Without header row
Which class should I use?
| Scenario | Class |
|---|---|
| Small datasets (< 1000 rows) | CSVResponse |
Need to access content after creation (getContent()) |
CSVResponse |
| Large datasets or unknown size | StreamedCSVResponse |
| Database cursor / generator source | StreamedCSVResponse |
| Memory-constrained environment | StreamedCSVResponse |
Both classes share the same constructor signature and support the same features. The only difference is how data is written to the response.
Contributing
Credits
Special thanks to Paul Mitchum and Dan Feder for their contributions.
License
MIT
All versions of csv-response with dependencies
PHP Build Version
Package Version
The package ilbee/csv-response contains the following files
Loading the files please wait ...