f0ska/auto-grid-bundle

Automatic grid generation for Symfony Doctrine entities.

Maintainers

Package info

github.com/f0ska/auto-grid-bundle

Language:Twig

pkg:composer/f0ska/auto-grid-bundle

Statistics

Installs: 24

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v2.4.0 2026-04-23 19:14 UTC

This package is auto-updated.

Last update: 2026-04-23 19:25:18 UTC


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

  1. In your Controller Inject AutoGridFactory to 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
        ]);
    }
  2. In Twig Render the grid:

    {{ ag_render(grid) }}
  3. Result AutoGrid Screenshot

Requirements

  • PHP 8.1+
  • Symfony 6.4+
  • Frameworks: Default templates use Bootstrap 5. See templates for custom framework configuration.