Weave 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
Datatable Bundle

Datatable Bundle Laravel Package

crossknowledge/datatable-bundle

A Symfony bundle for building datatables with server-side data handling, reusable configuration, and straightforward integration into PHP admin interfaces. It helps teams add sortable, filterable tables to back-office screens without duplicating table logic.

View on GitHub
Deep Wiki
Context7

CrossKnowledge DatatableBundle is a Symfony bundle that integrates jQuery DataTables into PHP applications, handling server-side processing so pagination, sorting and filtering happen in the database rather than the browser.

It wraps Doctrine query builders and returns JSON responses in the format DataTables expects.

  • Server-side pagination, sorting and search
  • Doctrine ORM/ODM query builder integration
  • Configurable columns and searchable fields
  • DataTables-compatible JSON responses
  • Reusable base controller for quick setup
Frequently asked questions about Datatable Bundle
Can I use crossknowledge/datatable-bundle in a Laravel application?
No. This package is a Symfony2 bundle built around Symfony's service container, Doctrine ORM, and Twig, so it does not provide Laravel service providers, facades, or Eloquent integration. Composer may resolve the package in a Laravel project, but you would not get working Laravel integration. Laravel applications should use a Laravel-native DataTables package or a custom API-based implementation.
How do I install crossknowledge/datatable-bundle?
Install it with Composer using the crossknowledge/datatable-bundle package name, then enable the bundle in your Symfony2 AppKernel and configure your Doctrine connection. You will also need to register the bundle's routes and include the required frontend DataTables assets. Check the package's Composer constraints against your Symfony, Doctrine, and Twig versions before installing.
Which Symfony versions does this DataTable bundle support?
The bundle is designed for Symfony2, so it is not a good fit for Symfony 5, Symfony 6, Symfony Flex, or modern Symfony applications without significant adaptation. Symfony2 has been end-of-life since 2023, which increases compatibility and security risk. If you are migrating to a newer Symfony version, evaluate a custom API-based solution or a maintained modern bundle instead.
What Twig version does crossknowledge/datatable-bundle 4.1.0 require?
Release 4.1.0 raises the bundle's Twig requirement, so applications pinned to Twig 1.x may hit Composer resolution conflicts. Apps already on Twig 2.x or 3.x should have a cleaner install path, but you should still re-test any local Twig template overrides. If you cannot upgrade Twig yet, stay on the prior bundle version until your Twig upgrade path is clear.
Does it support server-side processing for large datasets?
Yes. The bundle implements server-side processing for DataTables.net, including sorting, filtering, pagination, and AJAX-driven data loading. This is important for large datasets because it avoids sending all rows to the browser at once. The tradeoff is added database query load, so you should optimize queries and indexes and consider caching for heavy usage.
Can I use MongoDB, Elasticsearch, or other non-Doctrine data sources?
The bundle relies on Doctrine queries, so non-Doctrine data sources are not supported natively. MongoDB, Elasticsearch, or custom APIs would require custom query builders or adapter code. If your application depends heavily on non-Doctrine sources, a custom DataTables server-side endpoint may be simpler than extending this bundle.
How do I customize DataTables column rendering, callbacks, or buttons?
The bundle's primary integration point is its Twig extension and rendering of DataTables markup, while client-side DataTables configuration handles callbacks, buttons, and column rendering. Simple customizations can often be done through frontend overrides or bundle extensions. If you use React, Vue, or heavily customized DataTables plugins, the Twig-centric approach may require an API-based alternative.
Is crossknowledge/datatable-bundle actively maintained?
The last release in 2025 suggests the package is in maintenance mode rather than active feature development, and Symfony2 itself is end-of-life. Release 4.1.0 shows the maintainer is still tracking some upstream dependencies, which modestly reduces abandonment risk but does not remove it. For long-term projects, plan for eventual migration away from Symfony2 and this bundle.
What are good alternatives for Laravel developers who need server-side DataTables?
Laravel developers should look at Laravel-native packages such as yajra/laravel-datatables, which integrate with Eloquent and Laravel's request lifecycle. Another option is building a custom API endpoint that returns DataTables-compatible JSON and using DataTables.net directly on the frontend. The crossknowledge/datatable-bundle is Symfony2-specific and is not a practical alternative for Laravel applications.
What production risks should I consider before using this bundle?
Key risks include Symfony2's end-of-life status, potential security exposure from unsupported dependencies, and the conditional breaking impact of the Twig requirement change in 4.1.0. Server-side processing can also increase database load, so query optimization and caching should be planned. Test upgrades in a branch and validate any custom Twig overrides before deploying to production.
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.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core
nodisrupt/laravel-agent
sierratecnologia/media-manager