Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gri3li/yii2-csvdataprovider
Yii2 extension providing a data provider implementation for CSV files
https://github.com/gri3li/yii2-csvdataprovider
yii2-extension
Last synced: about 1 month ago
JSON representation
Yii2 extension providing a data provider implementation for CSV files
- Host: GitHub
- URL: https://github.com/gri3li/yii2-csvdataprovider
- Owner: gri3li
- License: bsd-3-clause
- Created: 2018-10-09T18:46:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-09T18:55:59.000Z (over 6 years ago)
- Last Synced: 2024-11-13T14:55:27.757Z (about 2 months ago)
- Topics: yii2-extension
- Language: PHP
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CsvDataProvider
===This Yii2 extension implements a data provider based on a csv
Installation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
composer require --prefer-dist gri3li/yii2-csvdataprovider
```or add
```json
"gri3li/yii2-csvdataprovider": "*"
```to the require section of your composer.json.
Usage
-----```php
$provider = new CsvDataProvider([
'filename' => '/path/to/file.csv',
'pagination' => [
'pageSize' => 20,
],
]);
```