Yii 2.0: yii2-excel-exporter

Quickly create Excel files from query results or raw data
2 followers

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:

https://github.com/codemix/yii2-excelexport

Be the first person to leave a comment

Please to leave your comment.

Create extension
Downloads
No downloadable files yet
  • Yii Version: 2.0
  • License: MIT License
  • Developed by: Mike
  • Category: Others
  • Votes: +1
  • Downloaded: 0 times
  • Created on: Apr 28, 2016
  • Last updated: never
  • Tags: excel