f0ska/auto-grid-bundle

Automatic grid generation for Symfony Doctrine entities.

Maintainers

Package info

github.com/f0ska/auto-grid-bundle

pkg:composer/f0ska/auto-grid-bundle

Statistics

Installs: 20

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v1.1.7 2026-03-15 11:23 UTC

This package is auto-updated.

Last update: 2026-03-15 17:29:20 UTC


README

🚀 Demo Bundle | 📖 Full Documentation | 🛠 Installation

AutoGridBundle automates the CRUD layer in Symfony to eliminate repetitive boilerplate. It provides fully functional grids, forms, and filters for your Doctrine entities right out of the box, with no initial configuration.

PHP 8.1+ Symfony 6.4+ Bootstrap 5 License MIT

✨ Key Features

  • 🚀 Zero Configuration: Get a functional CRUD for any entity instantly without writing a single line of config.
  • 🛠 Advanced Form Guessing: Out-of-the-box support for complex types, improving upon the standard Symfony Form Guesser.
  • 🔍 Automated Filters & Sorting: Smart data filtering and sorting generated automatically based on your database schema.
  • 💎 Attribute-Based Customization: Fine-tune your UI using PHP 8 Attributes directly in your Entities.
  • 🔄 Full CRUD Lifecycle: Integrated views for Listing, Creating, Editing, and Deleting records.
  • 🎨 Extensible UI: Easily override templates or extend the core logic to fit your custom requirements.

🔥 Example

Controller Example:
public function myAction(AutoGridFactory $factory): Response
{
    $grid = $factory->create(MyEntity::class);
    return $grid->getResponse() ?? $this->render('my-template.html.twig', ['grid' => $grid]);
}
Twig Template Example:
{{ agRender(grid) }}
Result:

Default Bootstrap5 AutoGrid look

📖 Explore more features:

⚙️ Technical notice

AutoGrid is built for Symfony 6+ and PHP 8.1+. It uses the Bootstrap 5 theme and icons to display content nicely.

You will need to adapt AutoGrid templates if your project does not use Bootstrap 5. However, this process is straightforward and much faster than building grids from scratch. Initially, it's recommended to include the Bootstrap theme (even from a CDN) to see how it is supposed to look by default. This will help you customize AutoGrid templates for your specific theme.