Skip to content

XZzYassin/yii2-csv-export

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 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', 'novoseletskiyserhiy@gmail.com']
    ]
]);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%