PHPackages                             monken/tablesigniter - 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. [Framework](/categories/framework)
4. /
5. monken/tablesigniter

ActiveProject[Framework](/categories/framework)

monken/tablesigniter
====================

CodeIgniter4 starter app

v1.2.1(5y ago)133.2k↓50%7MITPHPPHP ^7.1 || ^8.0CI failing

Since Jan 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/monkenWu/TablesIgniter)[ Packagist](https://packagist.org/packages/monken/tablesigniter)[ RSS](/packages/monken-tablesigniter/feed)WikiDiscussions master Synced 1mo ago

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

TablesIgniter
=============

[](#tablesigniter)

[![Latest Stable Version](https://camo.githubusercontent.com/6a0fd7784c7330c50e488979ed5ffc7e5f3b0780fde3b5f92b962604848331f1/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6e6b656e2f7461626c657369676e697465722f76)](//packagist.org/packages/monken/tablesigniter) [![Total Downloads](https://camo.githubusercontent.com/edf28b00c00ff44cf1c50273908553befa6c23d854206e61e3041b97b9993796/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6e6b656e2f7461626c657369676e697465722f646f776e6c6f616473)](//packagist.org/packages/monken/tablesigniter) [![License](https://camo.githubusercontent.com/b03ff97b3267bc803bb6d086b4bf27ad67659e84c551d6ebe3d0495cf8e66b1d/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6e6b656e2f7461626c657369676e697465722f6c6963656e7365)](//packagist.org/packages/monken/tablesigniter)

Tableslgniter is an addins base on CodeIgniter4. It will help you use jQuery Datatables in server side mode.

If you want to get CodeIgniter3 version of Tableslgniter you can go to this [git repository](https://github.com/monkenWu/TablesIgniter_CI3).

[Visit the sample website and read user guide.](https://tablesigniter.monken.tw/)

TablesIgniter 基於 CodeIgniter4 。它將可以幫助你在 使用 server side mode 中使用 jQuery Datatables。

如果你希望取得 CodeIgniter3 版本的 Tableslgniter 你可以前往這個 [git儲存庫](https://github.com/monkenWu/TablesIgniter_CI3) 。

[造訪範例網站與使用指南](https://tablesigniter.monken.tw/)

Install
-------

[](#install)

### Prerequisites

[](#prerequisites)

1. CodeIgniter Framework 4.\*
2. Composer

### Composer Install

[](#composer-install)

```
composer require monken/tablesigniter

```

### Use Library

[](#use-library)

Declare the following code in the controller that will use TablesIgniter.

```
use monken\TablesIgniter;

```

Quick Start
-----------

[](#quick-start)

### HTML

[](#html)

```

            id
            title
            date

```

### JavaScript

[](#javascript)

```
$('#firstTable').DataTable({
    "aoColumnDefs": [{
        "bSortable": false,
        "aTargets": [ 0,1,2 ]
    }],
    "order":[],
    "serverSide":true,
    "searching": false,
    "lengthChange":false,
    "ajax":{
        url:"",
        type:'POST'
    }
});

```

### Controller

[](#controller)

```
public function firstTable(){
    $model = new HomeModel();
    $table = new TablesIgniter();
    $table->setTable($model->noticeTable())
          ->setOutput(["id","title","date"]);
    return $table->getDatatable();
}

```

1. Calling the "setTable()" method must pass in a Query Builder object. TablesIgniter relies on the database query content defined by this object. This object is usually declared in the Model.
2. When calling the "setOutput()" method, the array must be passed in. The order of the array will affect the order of the data presented by DataTables. The definition of the string must be the same as the field name of the result queried by "setTable()".
3. Calling "getDatatable()" will get the json string that meets the requirements of jQuery DataTables.

### Model

[](#model)

```
public function noticeTable(){
    $builder = $this->db->table("news");
    return $builder;
}

```

You are free to use all the methods of Query Builder to meet all your requirements for database query. Finally, you must return the objects generated by Query Builder.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~77 days

Recently: every ~112 days

Total

7

Last Release

1842d ago

PHP version history (3 changes)v1.0.0PHP ^7.1

v1.1.2PHP &gt;=7.2

v1.2.1PHP ^7.1 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![monkenWu](https://avatars.githubusercontent.com/u/55150513?v=4)](https://github.com/monkenWu "monkenWu (21 commits)")[![pooleasee](https://avatars.githubusercontent.com/u/25970272?v=4)](https://github.com/pooleasee "pooleasee (7 commits)")

---

Tags

ci4codeigniter4datatables-serversidejquery-datatableslibrarycodeigniterdatatablescodeigniter4

### Embed Badge

![Health badge](/badges/monken-tablesigniter/health.svg)

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

###  Alternatives

[composer/installers

A multi-framework Composer library installer

1.4k136.0M6.0k](/packages/composer-installers)[michalsn/codeigniter-htmx

HTMX helper for CodeIgniter 4 framework

8140.9k](/packages/michalsn-codeigniter-htmx)[codeigniter/phpstan-codeigniter

CodeIgniter extensions and rules for PHPStan

17457.2k30](/packages/codeigniter-phpstan-codeigniter)[luthier/luthier

Improved routing, middleware support, authentication tools and more for CodeIgniter 3 framework

150108.8k](/packages/luthier-luthier)[irsyadulibad/codeigniter4-datatables

Server side DataTables library for CodeIgniter4 framework

702.4k](/packages/irsyadulibad-codeigniter4-datatables)[m1ome/phalcon-datatables

DataTables adapter for Phalcon Framework

4943.2k](/packages/m1ome-phalcon-datatables)

PHPackages © 2026

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