Search by

yajra/laravel-datatables-html

Laravel DataTables HTML builder plugin

Fund package maintenance!
yajra
Patreon
www.paypal.me/yajra

Installs: 8 692 917

Dependents: 52

Suggesters: 10

Security: 0

Stars: 280

Watchers: 8

Forks: 69

Open Issues: 4

pkg:composer/yajra/laravel-datatables-html

v12.6.02025-10-21 02:10 UTC

Requires

Suggests

  • laravel/livewire: Required for Livewire layout support.

Provides

None

Conflicts

None

Replaces

None

MIT 2edae2c3cb240927d1c46e105f2d92cb74c58ac7

  • Arjay Angeles<aqangeles.woop@gmail.com>

jqueryJShtmllaraveldatatablesyajra

This package is auto-updated.

Last update: 2025-10-21 02:15:21 UTC


README

Laravel 12.xLatest Stable VersionScrutinizer Code QualityTotal DownloadsLicense

Continuous IntegrationStatic AnalysisPHP Linting

This package is a plugin ofLaravel DataTables for generating dataTables script using PHP.

Requirements

Documentations

Laravel Version Compatibility

LaravelPackage
8.x and below4.x
9.x9.x
10.x10.x
11.x11.x
12.x12.x

Quick Installation

composer require yajra/laravel-datatables-html:^12

Setup scripts with ViteJS

Set the default javascript type tomodule by settingBuilder::useVite() in theAppServiceProvider.

namespaceApp\Providers;useIlluminate\Pagination\Paginator;useIlluminate\Support\ServiceProvider;useYajra\DataTables\Html\Builder;class AppServiceProviderextends ServiceProvider{/**     * Bootstrap any application services.     */publicfunctionboot():void    {        Paginator::useBootstrapFive();        Builder::useVite();    }}

Publish Assets (Optional)

$ php artisan vendor:publish --tag=datatables-html

And that's it! Start building out some awesome DataTables!

Contributing

Please seeCONTRIBUTING for details.

Security

If you discover any security related issues, please emailaqangeles@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please seeLicense File for more information.