mmucklo/grid-bundle
Symfony bundle to generate searchable, customizable grids from Doctrine ORM entities or MongoDB ODM documents. Renders via jQuery DataTables, jqGrid, or styled HTML tables with Bootstrap-friendly output, column customization, and easy setup for Symfony 3.4–8.0.
ContainerInterface dependency (would need Laravel’s Container facade or a bridge like symfony/dependency-injection).Illuminate\Database\Eloquent instead of Doctrine).ContainerInterface is not natively supported in Laravel.doctrine/dbal for shared SQL).GridService facade).spatie/laravel-data-tables, yajra/laravel-datatables) be more maintainable?| Component | Laravel Compatibility | Workaround |
|---|---|---|
| Doctrine ORM/ODM | ❌ No | Use doctrine/dbal for shared SQL or rewrite queries in Eloquent. |
| Symfony DI | ❌ No | Bridge via symfony/dependency-injection or create Laravel facades. |
| Twig | ❌ No | Render grids in Blade or integrate Twig via twig/bridge. |
| jQuery/DataTables | ✅ Yes (optional) | Include via CDN or Laravel mix. |
| Annotations | ⚠️ Partial | Use YAML/XML config or Laravel’s attribute system (PHP 8+) for metadata. |
symfony/framework-bundle and doctrine/orm alongside Laravel.vendor/ directory).composer require mmucklo/grid-bundle.config/bundles.php (Symfony 4+)./dtc_grid routes or proxy requests via Laravel middleware.twig/bridge and configure Twig templates to render grids.return view('twig::DtcGridBundle:Page:datatables.html.twig', $params);.// app/Services/GridService.php
class GridService {
public function buildQuery(string $entityClass, array $filters) {
// Use DtcGridBundle's logic without full Symfony stack
// (Requires adapting Symfony's Doctrine tools to Laravel)
}
}
// Controller
public function showGrid() {
$data = GridService::buildQuery('App\User', $request->all());
return view('admin.grid', compact('data'));
}
yajra/laravel-datatables (for DataTables integration).spatie/laravel-data-tables (for server-side processing)./admin/users) using Option 2 (backend-only).How can I help you explore Laravel packages today?