|Ratings|| ||Unique User Downloads|| ||Download Rankings|
|Not yet rated by the users||Total: 122 ||All time: 9,290 This week: 235|
This package can export array data to a CVS file to be downloaded.
It can take an array of data to be exported and generates a CSV file that is served for download as a file with a given name.
The CSV file name and the CSV column header names are configurable parameters.
PHP CSV Export
A simple & lightweight csv export package for PHP
You can start it from composer. Go to your terminal and run this command from your project root directory.
composer require hashemi/php-csv-export
After Complete installation, It's time to check how to use.
require_once __DIR__ . '/vendor/autoload.php';
$headers = [
$rows = [
[1, 'Foo', 12],
[2, 'Bar', 34],
[3, 'John', 12]
(new CsvExport($headers, $rows, 'employee.csv'))->download();
Pull requests are welcome. For any changes, please open an issue first to discuss what you would like to change.
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.