PHPackages                             adiliogobira/laravel-datatables - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. adiliogobira/laravel-datatables

ActiveLibrary

adiliogobira/laravel-datatables
===============================

jQuery DataTables API for Laravel 4|5|6|7

v9.19.0(4y ago)04MITPHPPHP ^7.1.3|^8

Since Aug 19Pushed 4y agoCompare

[ Source](https://github.com/adiliogobira/laravel-datatables)[ Packagist](https://packagist.org/packages/adiliogobira/laravel-datatables)[ Fund](https://www.paypal.me/yajra)[ Patreon](https://www.patreon.com/yajra)[ RSS](/packages/adiliogobira-laravel-datatables/feed)WikiDiscussions 9.0 Synced today

READMEChangelog (1)Dependencies (6)Versions (378)Used By (0)

jQuery DataTables API for Laravel 4|5|6|7|8
===========================================

[](#jquery-datatables-api-for-laravel-45678)

[![Join the chat at https://gitter.im/yajra/laravel-datatables](https://camo.githubusercontent.com/8c45475384ed8c85dff5291432b446ed7947cc81b09eb6c6bae0275aad633237/68747470733a2f2f6261646765732e6769747465722e696d2f79616a72612f6c61726176656c2d646174617461626c65732e737667)](https://gitter.im/yajra/laravel-datatables?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[![Donate](https://camo.githubusercontent.com/d47cdb766a100070d38a702d9c7760ccc8052063484e1478a26bcd16680d33af/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f6e6174652d70617970616c2d626c75652e737667)](https://www.paypal.me/yajra)[![Donate](https://camo.githubusercontent.com/b8c0238c370d2379c32ad625aae27de6c2f9e6f43b31e7d36ee4fb609121bfe0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f6e6174652d70617472656f6e2d626c75652e737667)](https://www.patreon.com/bePatron?u=4521203)

[![Laravel 4.2|5.x|6|7|8](https://camo.githubusercontent.com/1748aef725612b462d415159bbfa7c67f6cb737caba39a74dc85b36073f26b2d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d342e32253743352e782537433625374337253743382d6f72616e67652e737667)](http://laravel.com)[![Latest Stable Version](https://camo.githubusercontent.com/62213978574beb9275eabe757f7c17642af4968e58b3db70dffc8c62395d3cbb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f79616a72612f6c61726176656c2d646174617461626c65732d6f7261636c652e737667)](https://packagist.org/packages/yajra/laravel-datatables-oracle)[![Latest Unstable Version](https://camo.githubusercontent.com/de12808e0d00d47950e98c3ff6585229169749e7ec0e589aec9c7d048810395a/68747470733a2f2f706f7365722e707567782e6f72672f79616a72612f6c61726176656c2d646174617461626c65732d6f7261636c652f762f756e737461626c652e737667)](https://packagist.org/packages/yajra/laravel-datatables-oracle)[![Build Status](https://github.com/yajra/laravel-datatables-html/workflows/tests/badge.svg)](https://github.com/yajra/laravel-datatables-html/workflows/tests/badge.svg)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/0c69761dbf7e09fd9af8159a6de5de8f0c9ea1fb2f82aad22578f44d83936cc4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f79616a72612f6c61726176656c2d646174617461626c65732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yajra/laravel-datatables/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/321386e5b5c9bfb11180b6b3e13d20610a7b0260dee7cf5f8e4450bf6073bfb3/68747470733a2f2f706f7365722e707567782e6f72672f79616a72612f6c61726176656c2d646174617461626c65732d6f7261636c652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/yajra/laravel-datatables-oracle)[![License](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667)](https://packagist.org/packages/yajra/laravel-datatables-oracle)

This package is created to handle [server-side](https://www.datatables.net/manual/server-side) works of [DataTables](http://datatables.net) jQuery Plugin via [AJAX option](https://datatables.net/reference/option/ajax) by using Eloquent ORM, Fluent Query Builder or Collection.

```
return datatables()->of(User::query())->toJson();
return datatables()->of(DB::table('users'))->toJson();
return datatables()->of(User::all())->toJson();

return datatables()->eloquent(User::query())->toJson();
return datatables()->query(DB::table('users'))->toJson();
return datatables()->collection(User::all())->toJson();

return datatables(User::query())->toJson();
return datatables(DB::table('users'))->toJson();
return datatables(User::all())->toJson();
```

Requirements
------------

[](#requirements)

- [PHP &gt;= 7.0](http://php.net/)
- [Laravel 4.2|5.x|6|7|8](https://github.com/laravel/framework)
- [jQuery DataTables v1.10.x](http://datatables.net/)

Documentations
--------------

[](#documentations)

- [Github Docs](https://github.com/yajra/laravel-datatables-docs)
- [Laravel DataTables Quick Starter](https://yajrabox.com/docs/laravel-datatables/master/quick-starter)
- [Laravel DataTables Documentation](https://yajrabox.com/docs/laravel-datatables)
- [Laravel 5.0 - 5.3 Demo Application](https://datatables.yajrabox.com)

**NOTE: Documentation links below are currently offline.**

- [Laravel 5.4 Demo Application](http://dt54.yajrabox.com)

Laravel Version Compatibility
-----------------------------

[](#laravel-version-compatibility)

LaravelPackage4.2.x3.x5.0.x6.x5.1.x6.x5.2.x6.x5.3.x6.x5.4.x7.x, 8.x5.5.x8.x5.6.x8.x5.7.x8.x5.8.x9.x6.x.x9.x7.x.x9.x8.x.x9.xDataTables 8.x Upgrade Guide
----------------------------

[](#datatables-8x-upgrade-guide)

There are breaking changes since DataTables v8.x. If you are upgrading from v7.x to v8.x, please see [upgrade guide](https://yajrabox.com/docs/laravel-datatables/master/upgrade).

Quick Installation
------------------

[](#quick-installation)

```
$ composer require yajra/laravel-datatables-oracle:"~9.0"
```

#### Service Provider &amp; Facade (Optional on Laravel 5.5+)

[](#service-provider--facade-optional-on-laravel-55)

Register provider and facade on your `config/app.php` file.

```
'providers' => [
    ...,
    Yajra\DataTables\DataTablesServiceProvider::class,
]

'aliases' => [
    ...,
    'DataTables' => Yajra\DataTables\Facades\DataTables::class,
]
```

#### Configuration (Optional)

[](#configuration-optional)

```
$ php artisan vendor:publish --provider="Yajra\DataTables\DataTablesServiceProvider"
```

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

Debugging Mode
--------------

[](#debugging-mode)

To enable debugging mode, just set `APP_DEBUG=true` and the package will include the queries and inputs used when processing the table.

**IMPORTANT:** Please make sure that APP\_DEBUG is set to false when your app is on production.

PHP ARTISAN SERVE BUG
---------------------

[](#php-artisan-serve-bug)

Please avoid using `php artisan serve` when developing with the package. There are known bugs when using this where Laravel randomly returns a redirect and 401 (Unauthorized) if the route requires authentication and a 404 NotFoundHttpException on valid routes.

It is advised to use [Homestead](https://laravel.com/docs/5.4/homestead) or [Valet](https://laravel.com/docs/5.4/valet) when working with the package.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/yajra/laravel-datatables/blob/master/.github/CONTRIBUTING.md) for details.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Arjay Angeles](https://github.com/yajra)
- [bllim/laravel4-datatables-package](https://github.com/bllim/laravel4-datatables-package)
- [All Contributors](https://github.com/yajra/laravel-datatables/graphs/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/yajra/laravel-datatables/blob/master/LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 89.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~8 days

Recently: every ~47 days

Total

374

Last Release

1613d ago

Major Versions

6.0.x-dev → v8.4.42018-05-04

v8.13.5 → v9.0.02019-02-27

v8.13.6 → v9.0.12019-03-26

v8.13.7 → v9.4.12019-06-12

7.0.x-dev → v9.6.12019-09-26

PHP version history (7 changes)1.3.0PHP &gt;=5.3.0

v4.0.0PHP &gt;=5.4.0

v6.0.0-betaPHP &gt;=5.5.9

v7.0.0PHP &gt;=5.6.4

v8.0.0PHP &gt;=7.0

v9.0.0PHP ^7.1.3

v9.15.0PHP ^7.1.3|^8

### Community

Maintainers

![](https://www.gravatar.com/avatar/fef2452bcfcbfe8d46fe2ab2b6afcbd593a8c2518f0c53e0c27c5a1375fee995?d=identicon)[adiliogobira](/maintainers/adiliogobira)

---

Top Contributors

[![yajra](https://avatars.githubusercontent.com/u/2687997?v=4)](https://github.com/yajra "yajra (1531 commits)")[![Arkhas](https://avatars.githubusercontent.com/u/5020806?v=4)](https://github.com/Arkhas "Arkhas (15 commits)")[![vladkucherov](https://avatars.githubusercontent.com/u/4151984?v=4)](https://github.com/vladkucherov "vladkucherov (12 commits)")[![pimlie](https://avatars.githubusercontent.com/u/1067403?v=4)](https://github.com/pimlie "pimlie (11 commits)")[![tortuetorche](https://avatars.githubusercontent.com/u/5038872?v=4)](https://github.com/tortuetorche "tortuetorche (11 commits)")[![Morinohtar](https://avatars.githubusercontent.com/u/5765516?v=4)](https://github.com/Morinohtar "Morinohtar (10 commits)")[![sharifzadesina](https://avatars.githubusercontent.com/u/205923701?v=4)](https://github.com/sharifzadesina "sharifzadesina (10 commits)")[![ElfSundae](https://avatars.githubusercontent.com/u/526008?v=4)](https://github.com/ElfSundae "ElfSundae (10 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (9 commits)")[![ethaizone](https://avatars.githubusercontent.com/u/1168777?v=4)](https://github.com/ethaizone "ethaizone (8 commits)")[![apreiml](https://avatars.githubusercontent.com/u/350183?v=4)](https://github.com/apreiml "apreiml (7 commits)")[![lloricode](https://avatars.githubusercontent.com/u/8251344?v=4)](https://github.com/lloricode "lloricode (7 commits)")[![MarkVaughn](https://avatars.githubusercontent.com/u/39970?v=4)](https://github.com/MarkVaughn "MarkVaughn (6 commits)")[![schonhoff](https://avatars.githubusercontent.com/u/42345405?v=4)](https://github.com/schonhoff "schonhoff (5 commits)")[![intech](https://avatars.githubusercontent.com/u/451306?v=4)](https://github.com/intech "intech (4 commits)")[![bingbig](https://avatars.githubusercontent.com/u/8176443?v=4)](https://github.com/bingbig "bingbig (4 commits)")[![openvast](https://avatars.githubusercontent.com/u/9793122?v=4)](https://github.com/openvast "openvast (4 commits)")[![drahosistvan](https://avatars.githubusercontent.com/u/759009?v=4)](https://github.com/drahosistvan "drahosistvan (4 commits)")[![ridaamirini](https://avatars.githubusercontent.com/u/14841555?v=4)](https://github.com/ridaamirini "ridaamirini (4 commits)")[![selecod](https://avatars.githubusercontent.com/u/11497866?v=4)](https://github.com/selecod "selecod (4 commits)")

---

Tags

laraveljquerydatatables

### Embed Badge

![Health badge](/badges/adiliogobira-laravel-datatables/health.svg)

```
[![Health](https://phpackages.com/badges/adiliogobira-laravel-datatables/health.svg)](https://phpackages.com/packages/adiliogobira-laravel-datatables)
```

###  Alternatives

[yajra/laravel-datatables-oracle

jQuery DataTables API for Laravel

4.9k33.2M305](/packages/yajra-laravel-datatables-oracle)[yajra/laravel-datatables-editor

Laravel DataTables Editor plugin for Laravel 5.5+.

1215.9M1](/packages/yajra-laravel-datatables-editor)[bllim/datatables

Server-side handler of DataTables Jquery Plugin for Laravel 4

261407.9k4](/packages/bllim-datatables)[pragmarx/datatables

Server-side handler of DataTables Jquery Plugin for Laravel 4

16305.7k13](/packages/pragmarx-datatables)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
