PHP code example of gri3li / yii2-csvdataprovider

1. Go to this page and download the library: Download gri3li/yii2-csvdataprovider 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/ */

    

gri3li / yii2-csvdataprovider example snippets


$provider = new CsvDataProvider([
    'filename' => '/path/to/file.csv',
    'pagination' => [
        'pageSize' => 20,
    ],
]);