yajra/laravel-datatables-buttons

Laravel DataTables Buttons Plugin.

Maintainers

Package info

github.com/yajra/laravel-datatables-buttons

pkg:composer/yajra/laravel-datatables-buttons

Transparency log

Fund package maintenance!

yajra

Statistics

Installs: 10 088 370

Dependents: 64

Suggesters: 9

Stars: 256

Open Issues: 7

v13.2.1 2026-07-21 05:19 UTC

README

Laravel 12.x Latest Stable Version License

Continuous Integration Static Analysis Scrutinizer Code Quality Total Downloads

This package is a plugin of Laravel DataTables for handling server-side function of exporting the table as csv, excel, pdf and printing.

Requirements

Documentations

Laravel Version Compatibility

Laravel Package
8.x and below 4.x
9.x 9.x
10.x 10.x
11.x 11.x
12.x 12.x
13.x 13.x

Quick Installation

composer require yajra/laravel-datatables-buttons:^13

Service Provider (Optional on Laravel 5.5)

Yajra\DataTables\ButtonsServiceProvider::class

Configuration and Assets (Optional)

$ php artisan vendor:publish --tag=datatables-buttons --force

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

HTML Builder Resolution

DataTableHtml::make() resolves the HTML builder through Laravel's service container, whether or not constructor arguments are provided. Explicit positional arguments are passed to the resolved class as constructor overrides.

Because container resolution happens before handle() builds the table, applications can use container bindings and resolving or afterResolving callbacks to configure or extend the HTML builder consistently.

Contributing

Please see CONTRIBUTING for details.

Security

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

Credits

License

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