Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Datatablesbundle

Datatablesbundle Laravel Package

debricked/datatablesbundle

Symfony bundle that integrates jQuery DataTables with Doctrine, providing server-side processing, configurable columns/filters/sorting, and reusable datatable definitions. Includes v1.0 documentation and examples to quickly add data grids to your app.

View on GitHub
Deep Wiki
Context7

This Bundle integrates the jQuery DataTables plugin into your Symfony application. Webpack enabled fork from stwe/DatatablesBundle.

Frequently asked questions about Datatablesbundle
Can I use debricked/datatablesbundle directly in Laravel without Symfony?
No, this is a Symfony bundle and requires abstraction work. You’ll need to create a Laravel Service Provider to bridge Symfony’s DependencyInjection, Twig, and Doctrine with Laravel’s Eloquent, Blade, and Illuminate components. Expect 3–5 days of effort for a custom facade and controller integration.
What Laravel versions does this bundle support?
The bundle itself is Symfony-focused, but you can adapt it for Laravel 8–11 by manually handling Symfony dependencies (e.g., symfony/http-foundation for requests). Test compatibility with your Laravel version’s PHP (8.0+) and Doctrine/Eloquent versions.
How do I configure server-side processing (SSP) for Eloquent queries?
You’ll need to write a custom controller method to handle DataTables’ AJAX requests. Use Laravel’s `Request` to parse parameters (draw, start, length, etc.), then adapt your Eloquent query to return JSON matching DataTables’ expected format (e.g., `draw`, `recordsTotal`, `data`).
Does this bundle work with Laravel’s Blade templates?
No, the bundle relies on Twig. You’ll need to replace Twig logic with Blade directives or manually render DataTables HTML/JS in your Blade views. The client-side DataTables library itself works fine with Blade, but server-side configuration requires Symfony-to-Laravel abstraction.
What’s the best way to handle Webpack Encore assets in Laravel Mix/Vite?
Configure Webpack Encore to output CSS/JS to Laravel’s `public/build` folder, then link assets in Blade. Alternatively, manually include DataTables via CDN or Laravel’s `public/js` folder. Avoid conflicts by ensuring Encore’s output aligns with Laravel’s asset pipeline.
Are there Laravel-native alternatives to this bundle?
Yes, consider `yajra/laravel-datatables` (Laravel-specific, Eloquent/Query Builder support) or `tabulatorjs/tabulator` (client-side alternative). If you need Doctrine, this bundle may still be useful with abstraction work, but evaluate maintenance risks.
How do I handle Doctrine ORM if I only use Eloquent in Laravel?
Create a middleware or service to translate Doctrine queries to Eloquent. For example, use `DB::table()` or raw queries to mimic Doctrine’s behavior, then format responses to match DataTables’ JSON structure. This adds complexity but avoids Symfony dependencies.
What’s the performance impact of server-side processing in Laravel?
SSP adds latency if queries aren’t optimized. Use Eloquent’s `select()` to fetch only needed columns, add `where()` clauses for filtering early, and implement caching (e.g., Redis) for frequent requests. Test with large datasets to benchmark.
Is this bundle actively maintained? Should I fork it for Laravel?
The last release was in 2020, and it has no dependents. If you need Laravel support, fork the repo and adapt it for Laravel’s ecosystem. Document changes clearly for your team, as future updates from the original authors are unlikely.
How do I add custom columns or actions to DataTables in Laravel?
Extend the bundle’s configuration by creating a custom service or trait. Override the default column definitions in your Laravel Service Provider, then bind them to DataTables’ AJAX endpoint. Use Eloquent relationships or raw queries to fetch dynamic data for custom columns.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
directorytree/privacy-filter-classifier
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi