yii2-excel-exporter Quickly create Excel files from query results or raw data

  1. Features
  2. Example
  3. Documentation

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

0 1
2 followers
0 downloads
Yii Version: 2.0
License: MIT
Category: Others
Tags: excel
Developed by: Mike
Created on: Apr 28, 2016
Last updated: 8 years ago

Related Extensions