Skip to content

serhiynovos/yii2-csv-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Export array data to csv file

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', '[email protected]']
    ]
]);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages