eddmash / yii2-transpose-dataprovider
A Yii2 data provider that transpose data into a table format
Installs: 163
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 4
Forks: 2
Open Issues: 0
Type:yii2-extension
This package is auto-updated.
Last update: 2024-11-13 11:10:51 UTC
README
A Yii2 data provider that transpose data into a table format
Installation
The preferred way to install this extension is through composer.
Read this web tip /wiki on setting the
minimum-stability
settings for your application's composer.json.
Either run
$ php composer.phar require eddmash/transposedataprovider "@dev"
or add
"eddmash/transposedataprovider": "@dev"
to the require
section of your composer.json
file.
Usage
use Eddmash\TransposeDataProvider; $dataProvider = new TransposeDataProvider([ 'query'=>$dataQuery, 'groupField'=>'rowid', 'columnsField'=>'columns.column_name', 'valuesField'=>'data', 'extraFields'=>['call_data_id', 'instance.name'], 'pagination'=>[ 'pageSize'=>4 ] ]);
Learn more yii2-transpose-dataprovider documentation