This Yii2 extension implements a data provider based on a csv
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.
$provider = new CsvDataProvider([
'filename' => '/path/to/file.csv',
'pagination' => [
'pageSize' => 20,
],
]);