gri3li / yii2-csvdataprovider
CsvDataProvider implements a data provider based on a csv
Installs: 342
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: 2.*
This package is auto-updated.
Last update: 2025-03-28 19:52:33 UTC
README
This Yii2 extension implements a data provider based on a csv
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist gri3li/yii2-csvdataprovider
or add
"gri3li/yii2-csvdataprovider": "*"
to the require section of your composer.json.
Usage
$provider = new CsvDataProvider([ 'filename' => '/path/to/file.csv', 'pagination' => [ 'pageSize' => 20, ], ]);