yajra/laravel-datatables-html
Laravel DataTables HTML plugin for Laravel: build DataTables markup and initialization scripts in PHP, with Laravel 12+ support and Vite-friendly module output. Works with yajra/laravel-datatables to streamline table configuration and rendering.
Admin Dashboards & Data-Heavy Applications: Accelerates development of Laravel-based admin panels, SaaS platforms, or internal tools by providing a fluent PHP API for DataTables. Reduces frontend complexity for tables requiring server-side processing, pagination, sorting, and filtering, cutting implementation time by 30–50% compared to manual JavaScript.
Build vs. Buy Decision:
Roadmap & Feature Expansion:
->addButton('bulkExport')) to enable batch operations (delete, update, export) without frontend overhead.->useLivewire()) for live search, WebSocket-driven updates, or collaborative editing (e.g., shared dashboards).->visibleIf(Auth::user()->can('view_sensitive_data'))) for SaaS platforms.Cost & Licensing:
Adopt when:
Look elsewhere when:
Alternatives to Evaluate:
"This package lets us build high-performance data tables in Laravel without licensing costs or JavaScript complexity.
"This is a battle-tested, Laravel-native solution for server-side DataTables that integrates seamlessly with our stack.
"This package lets you build DataTables in Laravel with zero JavaScript—just PHP.
composer require yajra/laravel-datatables-html + Builder::useVite() for modern setups.$table->column('name')->title('User Name')).->useLivewire() for real-time updates (e.g., live search, WebSocket-driven data).->style(), add macros for reusable patterns, or extend with DataTables extensions.$table = DataTables::of(User::query())
->addColumn('status', function ($user) {
return '<span class="badge ' . $user->status_class . '">' . $user->status . '</span>';
})
->addButton('export', 'Excel', 'exportExcel')
->make(true);
How can I help you explore Laravel packages today?