fengxw / awesome-export-excel
The easier way to export excel
Installs: 206
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/fengxw/awesome-export-excel
Requires
- php: >=5.3
- phpoffice/phpexcel: ^1.8
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.