PHP code example of xzzyassin / yii2-csv-export
1. Go to this page and download the library: Download xzzyassin/yii2-csv-export library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
xzzyassin / yii2-csv-export example snippets
CSVExport::Export([
'dirName' => Yii::getAlias('@webroot'),
'fileName' => 'users.csv',
'data' => [
['#', 'User Name', 'Email'],
['1', 'Serhiy Novoseletskiy', '[email protected]']
]
]);
php composer.phar