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

ActiveLibrary

esclaudio/datatables
====================

Simple server side processing for datatables

1.1.0(4y ago)065MITPHPPHP ^7.2 || ^8.0

Since Jun 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/esclaudio/datatables)[ Packagist](https://packagist.org/packages/esclaudio/datatables)[ RSS](/packages/esclaudio-datatables/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Simple server side processing for datatables
============================================

[](#simple-server-side-processing-for-datatables)

[![Latest Version on Packagist](https://camo.githubusercontent.com/313b5ab8d2d8b1137cbc84242113fe473e13d9aee8a418c8c29caf090efe2dc7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6573636c617564696f2f646174617461626c65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/esclaudio/datatables)[![GitHub Tests Action Status](https://camo.githubusercontent.com/04d6963e11bd7f271a89a7ba90393b5b08d89380ac28f16669ea81c57a925b9c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6573636c617564696f2f646174617461626c65732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/esclaudio/datatables/actions?query=workflow%3Arun-tests+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/2dcb259ffa6b6a8ecb5e6c30aeeed69e26bfb3b3b9c9623af4eefc5df56552be/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6573636c617564696f2f646174617461626c65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/esclaudio/datatables)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require esclaudio/datatables
```

Usage
-----

[](#usage)

```
use Esclaudio\Datatables\Datatables;
use Esclaudio\Datatables\Options;
use Esclaudio\Datatables\Database\Connection;

$connection = new Connection(new \PDO(...));
$options = new Options($_GET);

header('Content-Type: application/json');
echo (new Datatables($connection, $options))
    ->from('posts')
    ->join('users', 'users.id', '=', 'posts.created_by')
    ->select([
        'posts.id as id',
        'posts.title as title',
        'users.name as creator',
    ])
    ->toJson(); // {"draw": 1, "recordsTotal": 1, "recordsFiltered": 1, "data": {...}}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~299 days

Total

3

Last Release

1576d ago

PHP version history (2 changes)1.0.0PHP ^7.2

1.1.0PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7890fcf4088b24b45da760e90374c2e900967e36f04efe5c6a1365bc704f89b5?d=identicon)[esclaudio](/maintainers/esclaudio)

---

Top Contributors

[![esclaudio](https://avatars.githubusercontent.com/u/4120439?v=4)](https://github.com/esclaudio "esclaudio (27 commits)")

---

Tags

datatablesphp

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

PHPackages © 2026

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