tricd / easy-phpexcel
It's a simple wrapper to support easy Excel document creation with PHPExcel
dev-master
2015-06-14 10:07 UTC
Requires
- phpoffice/phpexcel: dev-master
This package is auto-updated.
Last update: 2025-03-06 14:26:33 UTC
README
It's a simple wrapper to support easy Excel document creation with PHPExcel
Usage
The following minimal example will create an Excel file.
$data = array(
'Name' => 'Redmann',
'Sex' => 'male'
);
$excel = new EasyPHPExcel('My first Excel');
$excel->setHeader(array_keys($data))
->addRow(array_values($data))
->save('example1.xlsx');
That's it. Really! It's that simple.