f0ska / auto-grid-bundle
Automatic grid generation for Symfony Doctrine entities.
v2.4.0
2026-04-23 19:14 UTC
Requires
- php: >=8.1
- symfony/form: *
- symfony/framework-bundle: >=6.4
- symfony/security-bundle: *
- symfony/translation: *
- symfony/twig-bundle: *
- symfony/validator: *
README
AutoGrid automatically generates CRUD interfaces for Doctrine entities.
Demo | Installation | Configuration | Attributes | Optional Factory Arguments | Templates | Customization
Core Features
- CRUD Generation: Full List, Create, Edit, and Delete functionality.
- Metadata-driven: Automatically detects field types from Doctrine metadata.
- Built-in Filtering/Sorting: Integrated search based on database schema.
- PHP 8 Attributes: Configure UI behavior directly in Entity classes.
- Multi-theme Support: Includes Bootstrap 5, Bootstrap 4, Bulma, Flowbite, and Foundation.
Quick Start
-
In your Controller Inject
AutoGridFactoryto create a grid:public function list(AutoGridFactory $factory): Response { $grid = $factory->create(User::class); return $grid->getResponse() ?? $this->render('admin/user.html.twig', [ 'grid' => $grid ]); }
-
In Twig Render the grid:
{{ ag_render(grid) }}
Requirements
- PHP 8.1+
- Symfony 6.4+
- Frameworks: Default templates use Bootstrap 5. See templates for custom framework configuration.
