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

Datatables Bundle Laravel Package

lankit/datatables-bundle

A Laravel bundle for building DataTables-powered tables with server-side processing, filtering, and export support. Simplifies adding sortable, searchable, paginated data grids to PHP applications.

View on GitHub
Deep Wiki
Context7

Symfony2 bundle for DataTables.js server-side processing when using Doctrine Entities

Frequently asked questions about Datatables Bundle
Can I install lankit/datatables-bundle in a Laravel application?
No. A direct Composer require is not viable because this is a Symfony bundle that depends on the Symfony DI container, HttpFoundation, and Doctrine ORM, with no Laravel service provider, facade, or Eloquent integration. Laravel's container has no meaningful analogue for the bundle class, compiler passes, or Doctrine event subscribers. Treat it as a reference implementation rather than a dependency.
What does lankit/datatables-bundle actually do?
It is a Symfony2 bundle for DataTables.js server-side processing when using Doctrine Entities. It parses DataTables request parameters such as draw, start, length, search, order, and column definitions into a Doctrine QueryBuilder with filtering, ordering, and count queries. The result is sortable, searchable, paginated data grids in Symfony applications.
Is lankit/datatables-bundle maintained or safe for production?
The repository is archived, has about 15 stars, zero dependents, and no ongoing security patches or PHP, Symfony, and Doctrine compatibility updates. You should assume it targets an older PHP and Symfony generation unless composer.json proves otherwise. It is not suitable as a production dependency; fork and own it only if you accept the maintenance burden.
Which Laravel versions support lankit/datatables-bundle?
None. There is no Laravel integration, service provider, facade, configuration file, or Eloquent support, so Laravel version compatibility does not apply. For Laravel, use an Eloquent-native package such as yajra/laravel-datatables or port the relevant request-parsing logic into your own code.
How do I add server-side DataTables to Laravel instead?
Use yajra/laravel-datatables, which is actively maintained and built for Eloquent and Laravel's query builder. If you specifically want this bundle's parsing behavior, extract the DataTables request-to-query mapping and reimplement it over Illuminate\Database\Query\Builder or Eloquent. Add an explicit column allowlist and tests around search, ordering, and filtered counts.
What are the security risks of using this bundle's request parsing code?
DataTables sends column indices, order directives, and free-text search terms directly from the client, so any implementation that interpolates those values into SQL or DQL without an allowlist creates an injection surface. This archived code has had no recent security review or maintenance. After porting, enforce an explicit allowlist for searchable and orderable columns and use bound parameters.
Does lankit/datatables-bundle support exports and filtering?
The package blurb mentions filtering and export support, but the actual repository is a Symfony bundle, so you must verify export behavior in the code and README before relying on it. Filtering is handled by mapping DataTables search and order parameters onto Doctrine QueryBuilder conditions. Export is often a DataTables JavaScript or custom-code concern rather than a Laravel package feature.
Can I fork and port lankit/datatables-bundle to Laravel?
Yes, the MIT license makes forking legally clean. The viable path is to vendor the request-parsing and column-mapping code, replace Doctrine QueryBuilder calls with Eloquent or Illuminate query builder calls, and discard all Symfony controller and DI wiring. Add your own tests and an explicit column allowlist; expect days rather than weeks of work, but you own the result permanently.
Does the bundle implement the filtered count correctly for pagination?
You must verify this in the code. Correct DataTables server-side processing requires a separate COUNT over the filtered query, not just the unfiltered total, or pagination breaks when a search is applied. Inspect the count logic before relying on it, and cover it with tests if you port the implementation.
What are alternatives to lankit/datatables-bundle for Laravel?
For Laravel and Eloquent, yajra/laravel-datatables is the actively maintained idiomatic choice. If you are on Symfony with Doctrine, use a maintained Symfony equivalent rather than this archived bundle. The archived repository is best treated as a specification and starting point for porting, not as a package to adopt.
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.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo