Package Data | |
---|---|
Maintainer Username: | zofe |
Maintainer Contact: | felice.ostuni@gmail.com (Felice Ostuni) |
Package Create Date: | 2014-10-25 |
Package Last Update: | 2014-10-27 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-07 15:04:11 |
Package Statistics | |
---|---|
Total Downloads: | 22 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 3 |
Total Forks: | 2 |
Total Open Issues: | 0 |
DataGrid is a simple presenter widget for database queries, models, or any generic Array. By default it produce Bootstrap 3 compatible output.
At this moment is built on Deficient (a subset of laravel components including eloquent and blade, plus burp router). The plan is to make it compatible also with laravel, as standard package.
It can
$grid = DataGrid::source(new User);
$grid->add('id','ID',true)->style('width:100px');
$grid->add('name','Name',true);
$grid->paginate(5);
Because it can be used stand alone, and in any other framework.
It has really minimal dependencies.
install via composer
{
"require": {
"zofe/datagrid": "dev-master"
}
}
To configure database, views, you must reference to Deficient
This is a small how-to
$ php vendor/zofe/deficient/deficient setup:folders
$ php vendor/zofe/datagrid/datagrid setup:views
$ php vendor/zofe/datagrid/datagrid setup:router