Abbert Datagrid 0.1.0
Installation
Use composer to install the package
composer require "abbert/datagrid v0.1.0"
Usage
require 'vendor/autoload.php';
use Abbert\Datagrid\Datagrid;
use Abbert\Datagrid\DataSource\DoctrineSource;
$datagrid = new Datagrid();
$datagrid->setDatasource(new DoctrineSource($repo));
$datagrid->addColumn('#', function ($row) {
return $row->getId();
});
$datagrid->render();
echo $datagrid;
Version
Current version is v0.1.0
Todo
- More data sources
- More columns
- Get rid of symfony/http-foundation?
- Improve ActionColumn
- Improve configuration
- ?
License
See LICENSE
Contributing
- Fork the project
- Clone the repository
- Run
composer install
- Edit tests/web/app/config/db.php
- Go to to tests/web
- Run
../vendor/bin/doctrine orm:schema-tool:update
- Run
php -S 0:3000
in tests/web/public - Navigate to http://localhost:3000
- Make your changes
- Create a pull-request