PHPackages                             guardeivid/datatables-slim - 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. [API Development](/categories/api)
4. /
5. guardeivid/datatables-slim

ActiveLibrary[API Development](/categories/api)

guardeivid/datatables-slim
==========================

Create HTTP responses compatible with Datatables for JQuery from Eloquent Models, Query Builders, and Laravel Collections.

1.0.9(8y ago)059MITPHPPHP ~7.0

Since Mar 12Pushed 7y agoCompare

[ Source](https://github.com/guardeivid/Datatables-Slim)[ Packagist](https://packagist.org/packages/guardeivid/datatables-slim)[ Docs](https://github.com/aazbeltran/Datatables)[ RSS](/packages/guardeivid-datatables-slim/feed)WikiDiscussions master Synced 3w ago

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

Datatables for Laravel
======================

[](#datatables-for-laravel)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

A package for Laravel that integrates Eloquent queries and Illuminate Collections into [Datatables for JQuery](https://datatables.net/).

Structure
---------

[](#structure)

```
src/

```

Install
-------

[](#install)

Via Composer

```
$ composer require guardeivid/datatables-slim "dev-master"
```

Usage
-----

[](#usage)

```
// Laravel:
namespace App\Http\Controllers;
use  Gealtec\Datatables\Datatables;

class Controller extends BaseController
{
    public function datatablesExample (Request $request)
    {
        $users = Users::query();
        return Datatables::response($users, $request);
    }
}
```

```
// Datatables:
$('#example').DataTable( {
    "serverSide": true,
    "processing": true,
    "ajax": "datatablesexample",
    columns : [
        // The "name" property in the column initialization for Model attributes are optional.

        // This works...
        { "data": "id", "title": "Id" },

        // And so does this...
        { "data": "name", "title": "Name", "name": "name" },
        { "data": "email", "title": "Number", "name": "email" },

        // The "name" properties in your Datatables column initialization
        // will eager load the relations of the Model you are querying against
        // when you use Laravel dot notation...
        { "data": "groups[].name", "title": "Groups", "name": "groups.*.name" },

        // The "data" properties in the column initialization represent the displayed data
        // which is accessible using standard JavaScript bracket notation...
        { "data": "groups[].roles[].title", "title": "Roles", "name": "groups.*.roles.*.title" }
    ]
} );
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [John Markese](https://github.com/jmarkese)
- [Alonso Alejandro Zúñiga Beltrán](https://github.com/aazbeltran)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 63.2% 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 ~24 days

Recently: every ~1 days

Total

9

Last Release

3195d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e50c958686d535338065a00286f48289f723ef7fa51d6f1cfb7e44e8f8baadb?d=identicon)[guardeivid](/maintainers/guardeivid)

---

Top Contributors

[![jmarkese](https://avatars.githubusercontent.com/u/1827586?v=4)](https://github.com/jmarkese "jmarkese (48 commits)")[![aazbeltran](https://avatars.githubusercontent.com/u/7277106?v=4)](https://github.com/aazbeltran "aazbeltran (16 commits)")[![guardeivid](https://avatars.githubusercontent.com/u/35436943?v=4)](https://github.com/guardeivid "guardeivid (12 commits)")

---

Tags

datatablesMarkeseaazbeltran

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/guardeivid-datatables-slim/health.svg)

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

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

815320.5k3](/packages/defstudio-telegraph)[riclep/laravel-storyblok

A Laravel wrapper around the Storyblok API to provide a familiar experience for Laravel devs

6277.0k5](/packages/riclep-laravel-storyblok)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1348.1k1](/packages/jasara-php-amzn-selling-partner-api)[rapidez/core

Rapidez Core

1822.4k65](/packages/rapidez-core)

PHPackages © 2026

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