fengxw / awesome-export-excel
The easier way to export excel
v0.2.3
2018-07-04 14:30 UTC
Requires
- php: >=5.3
- phpoffice/phpexcel: ^1.8
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
It's an easier way to export an excel. you don't need to worry about the detail, the default style of excel is enough for you.
Install
composer require fengxw/awesome-export-excel
Usage
// define the arguments. $header = 'It is a header'; $title = ['column1', 'column2']; $data = [['value1', 'value2']]; // export excel ExportExcel::getInstance()->export($header, $title, $data);
One More thing
Maybe you has a complex form need to export, then you can check the examples and build the sheet as you want.