xzzyassin / yii2-csv-export
There is no license information available for the latest version (v1.0) of this package.
Export data to CSV file
Package info
github.com/XZzYassin/yii2-csv-export
Type:yii2-extension
pkg:composer/xzzyassin/yii2-csv-export
v1.0
2017-05-16 08:27 UTC
Requires
- php: >=5.4.0
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2026-03-15 10:50:25 UTC
README
Installation
The preferred way to install this extension is through composer.
php composer.phar require serrg1994/yii2-csv-export "@dev"
or add
"serrg1994/yii2-csv-export": "@dev"
to the require section of your composer.json.
Usage
CSVExport::Export([ 'dirName' => Yii::getAlias('@webroot'), 'fileName' => 'users.csv', 'data' => [ ['#', 'User Name', 'Email'], ['1', 'Serhiy Novoseletskiy', 'novoseletskiyserhiy@gmail.com'] ] ]);