xzzyassin / yii2-csv-export
Export data to CSV file
Installs: 68
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Type:yii2-extension
Requires
- php: >=5.4.0
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-04-27 06:28:24 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'] ] ]);