This is yet another extension to export data to excel with main focus on simplicity.
Features ¶
- Export data from
ActiveQuery
results - Export any other data (Array, Iterable, ...)
- Create excel files with multiple sheets
- Format cells and values
Example ¶
$file = \Yii::createObject([
'class' => 'codemix\excelexport\ExcelFile',
'sheets' => [
'Users' => [
'class' => 'codemix\excelexport\ActiveExcelSheet',
'query' => User::find(),
]
]
]);
$file->send('user.xlsx');
Documentation ¶
Find the full docs on our project site on Github:
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.