PHPackages                             marcha/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. marcha/laravel-datatables

ActiveLibrary

marcha/laravel-datatables
=========================

jQuery DataTables API for Laravel 4|5

v6.7.3(10y ago)075MITPHPPHP &gt;=5.5.9

Since Aug 19Pushed 10y ago1 watchersCompare

[ Source](https://github.com/marcha/laravel-datatables)[ Packagist](https://packagist.org/packages/marcha/laravel-datatables)[ RSS](/packages/marcha-laravel-datatables/feed)WikiDiscussions 6.0 Synced 1mo ago

READMEChangelogDependencies (11)Versions (208)Used By (0)

Datatables Package for Laravel 4|5
==================================

[](#datatables-package-for-laravel-45)

[![Laravel 4.2|5.0|5.1|5.2](https://camo.githubusercontent.com/ca247b4888e8c8e3a0347b6eb13b211da713d1df4a55319def76b77b49582414/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d342e32253743352e30253743352e31253743352e322d6f72616e67652e737667)](http://laravel.com)[![Latest Stable Version](https://camo.githubusercontent.com/e19029d55dd4133da825252e2d944c964b28e6221658f494b7f3045f6207e4ee/68747470733a2f2f706f7365722e707567782e6f72672f79616a72612f6c61726176656c2d646174617461626c65732d6f7261636c652f762f737461626c65)](https://packagist.org/packages/yajra/laravel-datatables-oracle)[![Build Status](https://camo.githubusercontent.com/25a9600d62e4ad37e59868d6dd6567aa9f5e57d0744137b1c2507e484fa55fd4/68747470733a2f2f7472617669732d63692e6f72672f79616a72612f6c61726176656c2d646174617461626c65732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yajra/laravel-datatables)[![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/53308d14325457fd71527b9fa4d23461f51651a1eb59f8df70d9d75316fc7bb2/68747470733a2f2f706f7365722e707567782e6f72672f79616a72612f6c61726176656c2d646174617461626c65732d6f7261636c652f646f776e6c6f616473)](https://packagist.org/packages/yajra/laravel-datatables-oracle)[![License](https://camo.githubusercontent.com/4d6d90c38f510f14d7c3d0a699ad65e7f824d97cb6112e4f0b05b6f0539a1f2b/68747470733a2f2f706f7365722e707567782e6f72672f79616a72612f6c61726176656c2d646174617461626c65732d6f7261636c652f6c6963656e7365)](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.

Feature Overview
----------------

[](#feature-overview)

- Supports the following data source
    - **Eloquent ORM**
    - **Fluent Query Builder**
    - **Collection** \[available on v5.x and later\]
- [DataTable Service Implementation (v6.x)](https://github.com/yajra/laravel-datatables/blob/6.0/CHANGELOG.md#v600---datatable-service-implementation).
- Adding or editing content of columns and removing columns
- Modify column values via Blade Template Engine or by using Closure
- Works with **ALL the DATABASE** supported by Laravel
- Works with **Oracle Database** using [Laravel-OCI8](https://github.com/yajra/laravel-oci8) package
- Works with [DataTables](http://datatables.net) v1.10++.
    - **Note:** DT Legacy code is not supported on v5.x
- Works with [DataTables](http://datatables.net) v1.9 and v1.10 legacy code.
    - **Note:** Use [v4.x](https://github.com/yajra/laravel-datatables-oracle/tree/v4.3.2) for Laravel 5 and [v3.x](https://github.com/yajra/laravel-datatables-oracle/tree/L4) for Laravel 4
- Extended column filtering via [`filterColumn`](http://yajra.github.io/laravel-datatables/api/source-class-yajra.Datatables.Engines.BaseEngine.html#489-503) API.
- Extended column ordering via [`orderColumn`](http://yajra.github.io/laravel-datatables/api/source-class-yajra.Datatables.Engines.BaseEngine.html#505-519) API.
- Extended Query Builder functionality allowing you to filter using Datatables class directly.
- Decorate your data output using [`league\fractal`](https://github.com/thephpleague/fractal) Transformer with Serializer support.
- Works with Laravel Dependency Injection and IoC Container.
- Provides a [DataTable Html Builder](http://datatables.yajrabox.com/html) to help you use the package with less code.
- Provides XSS filtering function to optionally escape all or specified column values using `escapeColumns('*'\['column'])` method.
- Provides Query Logging when application is in debug state. **Important: Make sure that debug is set to false when your code is in production**
- Easily attach a resource on json response via `->with()` method.
- Built-in support for exporting to CSV, EXCEL and PDF using [Laravel-Excel](https://github.com/Maatwebsite/Laravel-Excel).
- Built-in printer friendly view or create your own by overriding `printPreview()` method.
- Provides an artisan command for generating a DataTable service and scope.
- See [change logs](https://github.com/yajra/laravel-datatables/blob/6.0/CHANGELOG.md) for more details.

Requirements:
-------------

[](#requirements)

- PHP 5.5.9 or later.
- Laravel 5.0 or later.
- [DataTables jQuery Plugin](http://datatables.net/) v1.10.x

Laravel 4.2 &amp; DataTables v1.9.x Users
-----------------------------------------

[](#laravel-42--datatables-v19x-users)

Most of the latest updates/features are not available on these versions. Please check [L4 Branch](https://github.com/yajra/laravel-datatables/tree/L4) and [L5 DT1.9](https://github.com/yajra/laravel-datatables/tree/L5-DT1.9) for old documentations of its features.

Buy me a beer
-------------

[](#buy-me-a-beer)

[![Click here to lend your support to: Laravel Datatables and make a donation at pledgie.com !](https://camo.githubusercontent.com/5cd985b06c81b5c59aaf44f44bac58359a580a1edf43537012aab92dafa1468f/68747470733a2f2f706c65646769652e636f6d2f63616d706169676e732f32393531352e706e673f736b696e5f6e616d653d6368726f6d65)](https://pledgie.com/campaigns/29515)

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

[](#documentations)

- You will find user friendly and updated documentation in the wiki here: [Laravel Datatables Wiki](https://github.com/yajra/laravel-datatables/wiki)
- You will find the API Documentation here: [Laravel Datatables API](http://yajra.github.io/laravel-datatables/api/)
- [Demo Application](http://datatables.yajrabox.com) is available for artisan's reference.

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

[](#quick-installation)

`composer require yajra/laravel-datatables-oracle:~6.0`

#### Service Provider

[](#service-provider)

`Yajra\Datatables\DatatablesServiceProvider::class`

#### Facade

[](#facade)

`Datatables` facade are automatically registered as an alias for `Yajra\Datatables\Datatables` class.

#### Configuration and Assets

[](#configuration-and-assets)

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

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

Upgrading from v5.x to v6.x
---------------------------

[](#upgrading-from-v5x-to-v6x)

- Change all occurrences of `yajra\Datatables` to `Yajra\Datatables`. (Use Sublime's find and replace all for faster update).
- Remove `Datatables` facade registration.
- Temporarily comment out `Yajra\Datatables\DatatablesServiceProvider`.
- Update package version on your composer.json and use `yajra/laravel-datatables-oracle: ~6.0`
- Uncomment the provider `Yajra\Datatables\DatatablesServiceProvider`.

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

[](#contributing)

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

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- This project is used to be a fork from [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

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 89.9% 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 ~4 days

Total

204

Last Release

3717d ago

Major Versions

v5.11.9 → v6.0.0-alpha2015-09-22

v3.6.10 → v5.11.122015-10-29

v3.6.12 → v5.11.142015-11-11

v5.12.4 → v6.0.0-beta2015-12-02

5.0.x-dev → v6.0.02015-12-18

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

v4.0.0PHP &gt;=5.4.0

v6.0.0-betaPHP &gt;=5.5.9

### Community

Maintainers

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

---

Top Contributors

[![yajra](https://avatars.githubusercontent.com/u/2687997?v=4)](https://github.com/yajra "yajra (674 commits)")[![tortuetorche](https://avatars.githubusercontent.com/u/5038872?v=4)](https://github.com/tortuetorche "tortuetorche (11 commits)")[![vladkucherov](https://avatars.githubusercontent.com/u/4151984?v=4)](https://github.com/vladkucherov "vladkucherov (10 commits)")[![MarkVaughn](https://avatars.githubusercontent.com/u/39970?v=4)](https://github.com/MarkVaughn "MarkVaughn (6 commits)")[![DarkaOnLine](https://avatars.githubusercontent.com/u/1171698?v=4)](https://github.com/DarkaOnLine "DarkaOnLine (4 commits)")[![intech](https://avatars.githubusercontent.com/u/451306?v=4)](https://github.com/intech "intech (4 commits)")[![openvast](https://avatars.githubusercontent.com/u/9793122?v=4)](https://github.com/openvast "openvast (4 commits)")[![marcha](https://avatars.githubusercontent.com/u/3828422?v=4)](https://github.com/marcha "marcha (4 commits)")[![ansient](https://avatars.githubusercontent.com/u/16032418?v=4)](https://github.com/ansient "ansient (3 commits)")[![hiendv](https://avatars.githubusercontent.com/u/1917947?v=4)](https://github.com/hiendv "hiendv (3 commits)")[![ikerasLT](https://avatars.githubusercontent.com/u/7137426?v=4)](https://github.com/ikerasLT "ikerasLT (2 commits)")[![Fl0ux](https://avatars.githubusercontent.com/u/545615?v=4)](https://github.com/Fl0ux "Fl0ux (2 commits)")[![nightowl77](https://avatars.githubusercontent.com/u/414532?v=4)](https://github.com/nightowl77 "nightowl77 (2 commits)")[![sleeping-owl](https://avatars.githubusercontent.com/u/9197310?v=4)](https://github.com/sleeping-owl "sleeping-owl (2 commits)")[![donnykurnia](https://avatars.githubusercontent.com/u/95402?v=4)](https://github.com/donnykurnia "donnykurnia (2 commits)")[![Worm](https://avatars.githubusercontent.com/u/11246757?v=4)](https://github.com/Worm "Worm (2 commits)")[![ChrisReid](https://avatars.githubusercontent.com/u/2385373?v=4)](https://github.com/ChrisReid "ChrisReid (2 commits)")[![FabryB](https://avatars.githubusercontent.com/u/312795?v=4)](https://github.com/FabryB "FabryB (1 commits)")[![patsplat](https://avatars.githubusercontent.com/u/178626?v=4)](https://github.com/patsplat "patsplat (1 commits)")[![ramilexe](https://avatars.githubusercontent.com/u/1008882?v=4)](https://github.com/ramilexe "ramilexe (1 commits)")

---

Tags

laraveldatatableslaravel5datatablelaravel4datatables jquery plugin

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[yajra/laravel-datatables-oracle

jQuery DataTables API for Laravel

4.9k33.8M335](/packages/yajra-laravel-datatables-oracle)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[bllim/datatables

Server-side handler of DataTables Jquery Plugin for Laravel 4

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

Server-side handler of DataTables Jquery Plugin for Laravel 4

16307.7k14](/packages/pragmarx-datatables)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k1](/packages/bjuppa-laravel-blog)

PHPackages © 2026

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