PHPackages                             waqarali/datatable - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. waqarali/datatable

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

waqarali/datatable
==================

v1.1.5(2y ago)036MITPHPPHP &gt;=7.0.0

Since Jun 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Waqar380/php-datatable)[ Packagist](https://packagist.org/packages/waqarali/datatable)[ RSS](/packages/waqarali-datatable/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (9)Used By (0)

php-datatable
=============

[](#php-datatable)

Datatable server side processing

\#Example On Server side just use

Add package via composer

```
composer require Waqarali/datatable

```

```
$dt->setTable("table1 t1");
$dt->setPrimaryKey("t1.id");
$dt->joinTable(array(
    'type' => "left",
    'table' => "table2 t2",
    'primary' => 't1.id',
    'secondary' => 't2.ref_id'
));
$dt->joinTable(array(
    'type' => "left",
    'table' => "table3 t3",
    'primary' => 't3.id',
    'secondary' => 't2.ref_id2'
));

$dt->addColumn(array( 'db' => 't1.id', 'alies' => 'id',  'dt' => 0 , 'type' => 1 ));
$dt->addColumn(array( 'db' => 't1first_name', 'alies' => '', 'dt' => 1 , 'type' => 2));
$dt->addColumn(array( 'db' => 't1.last_name', 'alies' => '', 'dt' => 2 , 'type' => 2));
$dt->addColumn(array( 'db' => 't1.email', 'alies' => '', 'dt' => 3 , 'type' => 2));
$dt->addColumn(array( 'db' => 't3.name', 'alies' => 'name', 'dt' => 4 , 'type' => 2));
$dt->addColumn(array(
    'db'        => 't2.created_date',
    'alies' => 'created_date',
    'dt'        => 5,
    'type'        => 99,
    'formatter' => function( $d, $row ) {
        return date( 'd-m-Y', strtotime($d));
    }
));

echo json_encode($dt->getData());
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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 ~1 days

Total

8

Last Release

1069d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4840e38707bd0a4c5386fa7781cdc3f284205af46be62d911584b8fca03db86c?d=identicon)[Waqar380](/maintainers/Waqar380)

---

Top Contributors

[![WaqarAli381](https://avatars.githubusercontent.com/u/162950244?v=4)](https://github.com/WaqarAli381 "WaqarAli381 (20 commits)")[![Waqar380](https://avatars.githubusercontent.com/u/90183690?v=4)](https://github.com/Waqar380 "Waqar380 (4 commits)")

### Embed Badge

![Health badge](/badges/waqarali-datatable/health.svg)

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

###  Alternatives

[fmasa/auto-di

1522.2k](/packages/fmasa-auto-di)[petrgrishin/array-map

The object oriented approach to working with arrays on PHP

125.8k1](/packages/petrgrishin-array-map)

PHPackages © 2026

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