yii2-extension yii2-csv-export
Export data to CSV file
serrg1994/yii2-csv-export
Export data to CSV file
- Wednesday, April 20, 2016
- by serrg1994
- Repository
- 1 Watchers
- 2 Stars
- 257 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 1 Versions
- 8 % Grown
Export array data to csv file
Installation
The preferred way to install this extension is through composer., (*1)
php composer.phar require serrg1994/yii2-csv-export "@dev"
or add, (*2)
"serrg1994/yii2-csv-export": "@dev"
to the require section of your composer.json., (*3)
Usage
CSVExport::Export([
'dirName' => Yii::getAlias('@webroot'),
'fileName' => 'users.csv',
'data' => [
['#', 'User Name', 'Email'],
['1', 'Serhiy Novoseletskiy', 'novoseletskiyserhiy@gmail.com']
]
]);
dev-master
9999999-dev
Export data to CSV file
Sources
Download
The Requires
by
Serhiy Novoseletskiy
csv
yii2
export