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
Datatables Bundle

Datatables Bundle Laravel Package

adsazad/datatables-bundle

Symfony bundle integrating jQuery DataTables for realtime Ajax tables (Symfony 4.4+/5+). Data source logic is decoupled via adapters; includes Doctrine ORM, MongoDB and Elastica, with support for custom adapters. Includes a console generator command.

View on GitHub
Deep Wiki
Context7

DataTables bundle for Symfony

Frequently asked questions about Datatables Bundle
Can I use adsazad/datatables-bundle directly in a Laravel project?
No, this bundle is designed exclusively for Symfony 4.4+/5.x and relies on Symfony’s components like HttpFoundation, Doctrine, and Twig. Laravel’s ecosystem (Blade, Eloquent, Request) is incompatible without significant rewriting. Consider Laravel-native alternatives like yajra/laravel-datatables instead.
What are the bundled adapters, and can they work with Laravel’s Eloquent?
The bundle includes Doctrine ORM, MongoDB, and Elastica adapters, but these are Symfony-specific. For Laravel, you’d need to build custom adapters using Eloquent or Query Builder, which would require translating the bundle’s request/response logic—adding complexity and maintenance overhead.
How does the adapter architecture compare to Laravel’s repository pattern?
The bundle’s adapter pattern is similar to Laravel’s repository pattern in theory, but the implementation is tied to Symfony’s DI and event systems. In Laravel, you’d achieve the same decoupling natively with repositories or services, avoiding the need for this bundle entirely.
Is there a way to use this bundle as a microservice for Laravel?
Yes, you could deploy the Symfony bundle as a separate service (e.g., Docker container) and call its DataTables endpoints from Laravel via HTTP clients like Guzzle. This isolates dependencies but adds network latency and operational complexity.
Does this bundle support modern frontend frameworks like Inertia.js or Livewire?
The bundle assumes jQuery DataTables on the client side, which may not integrate smoothly with Inertia.js or Livewire. For these frameworks, consider Laravel-specific solutions like yajra/laravel-datatables or Tabler.js with custom API endpoints.
What Laravel alternatives provide similar functionality without Symfony dependencies?
For Laravel, use **yajra/laravel-datatables** (most popular), **spatie/laravel-data-table**, or **maatwebsite/excel** for server-side processing. These are optimized for Eloquent, Blade, and Laravel’s routing, avoiding Symfony’s overhead.
How do I handle large datasets efficiently in Laravel without this bundle?
Laravel’s Eloquent supports server-side processing natively with `cursor()`, chunking, or database-level pagination. For DataTables, yajra/laravel-datatables handles this out of the box, while raw queries with `DB::table()` can optimize performance for complex datasets.
Is the bundle actively maintained, and what’s the risk of using it in Laravel?
The bundle appears abandoned (README references omines/datatables-bundle, but the repo is adsazad’s). Using it in Laravel introduces high risk: no Symfony-to-Laravel compatibility layer exists, and maintenance would fall entirely on your team. Prioritize Laravel-native packages.
Can I generate DataTables configurations in Laravel like the Symfony `datatables:generate` command?
No, the command is Symfony-specific. In Laravel, use package generators like **laravel-shift/blueprint** or manually scaffold DataTables configurations with Blade templates and API routes for server-side processing.
What’s the best approach if I’m migrating from Symfony to Laravel and need DataTables?
Replace the Symfony bundle with **yajra/laravel-datatables** during migration. It offers 1:1 feature parity (server-side processing, column filtering, etc.) and integrates seamlessly with Laravel’s Eloquent, Blade, and API layers. Avoid hybrid setups unless absolutely necessary.
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.
comsave/common
alecsammon/php-raml-parser
chrome-php/wrench
lendable/composer-license-checker
typhoon/reflection
mesilov/moneyphp-percentage
mike42/gfx-php
bookdown/themes
aura/view
aura/html
aura/cli
povils/phpmnd
nayjest/manipulator
omnipay/tests
psr-mock/http-message-implementation
psr-mock/http-factory-implementation
psr-mock/http-client-implementation
voku/email-check
voku/urlify
rtheunissen/guzzle-log-middleware