Download the PHP package kibatic/datagrid-bundle without Composer
On this page you can find all versions of the php package kibatic/datagrid-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package datagrid-bundle
Kibatic Datagrid Bundle
Datagrid bundle for Symfony with the following design philosophy : less magic for more flexibility.
It's not the usual one line datagrid generator, it's a more verbose one but we think it's worth it.
Features
- Your entities in a table
- Pagination
- Sortable
- Filterable
- Actions (single & batch)
- Customizable templates
- Only supports Doctrine ORM
- Theme support (Bootstrap 5 included)
Quick start
Install the bundle
Add this to your assets/controllers.json
:
You'll most likely also need to enable this twig function : https://twig.symfony.com/doc/2.x/functions/template_from_string.html
Basic usage
You can simply generate a specialized datagrid builder class skeleton using the make command :
Or do everything manually, for example in your controller :
Then with Symfony UX handy twig components :
Or a more classic twig approach :
Documentation
You can find a more advanced example on how to generate your datagrid.
If you want to customize the pagination, use the knp paginator configuration.
If you're using a datagrid inside a live component (symfony ux), you'll need to do this.
Requirements
- Symfony 6
- PHP 8.2
- Doctrine ORM
Roadmap
- Adding a Flex recipe
All versions of datagrid-bundle with dependencies
doctrine/orm Version ^2.7|^3.0
twig/twig Version ^2.12.1|^3.0
twig/extra-bundle Version ^3.4
twig/string-extra Version ^3.4
knplabs/knp-paginator-bundle Version ^5.8|^6.3
symfony/property-access Version ^6.3|^7.0
symfony/form Version ^6.3|^7.0
symfony/options-resolver Version ^6.3|^7.0
kibatic/ux-bundle Version 2.*