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.1.0 2026-04-12 18:49 UTC

This package is auto-updated.

Last update: 2026-04-15 09:30:12 UTC


README

Automate the CRUD layer in Symfony by generating grids, forms, and filters directly from Doctrine entities.

Demo | Documentation | Installation

Core Features

  • Out-of-the-box CRUD: Full List, Create, Edit, and Delete functionality with minimal setup.
  • Metadata-driven UI: Advanced form and filter detection using Doctrine metadata.
  • Automatic Filtering: Integrated search and sorting based on database schema.
  • Attribute Configuration: Fine-tune UI behavior directly in your Entity classes.
  • Multi-theme Support: Default support for Bootstrap 5, with experimental support for Bootstrap 4, Bulma, Flowbite, and Foundation.

Implementation

1. Controller

public function list(AutoGridFactory $factory): Response
{
    $grid = $factory->create(User::class);
    
    // AutoGrid handles form processing, redirects, and state internally
    return $grid->getResponse() ?? $this->render('admin/user.html.twig', ['grid' => $grid]);
}

2. Twig

{{ ag_render(grid) }}

3. Default UI

AutoGrid Screenshot

Technical Requirements

  • PHP 8.1+
  • Symfony 6.4+
  • UI Framework: Default templates use Bootstrap 5. The bundle now includes experimental support for Bootstrap 4, Bulma, Flowbite, and Foundation. For custom frameworks or deep overrides, see template documentation.

Documentation Index | Installation | Attributes