Skip to content

Yii2 extension providing a data provider implementation for CSV files

License

Notifications You must be signed in to change notification settings

gri3li/yii2-csvdataprovider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CsvDataProvider

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,
    ],
]);

About

Yii2 extension providing a data provider implementation for CSV files

Topics

Resources

License

Stars

Watchers

Forks

Languages