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

ActivePackage[Framework](/categories/framework)

whykrr/datatables-builder
=========================

Builder datatables serverside processing for Codeigniter 4

v1.0.4(4y ago)040[2 issues](https://github.com/whykrr/datatablesbuilder/issues)MITPHPPHP ^7.3

Since Feb 6Pushed 4y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (7)Used By (0)

Datatables Builder
==================

[](#datatables-builder)

builder response datatables serverside processing for Codeigniter 4

Requirements
------------

[](#requirements)

- PHP 7+
- Codeigniter 4.0.0+

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

[](#installation)

Installation is best done via Composer. Assuming Composer is installed globally, you may use the following command:

```
composer require whykrr/datatables-builder
```

Manual Installation
-------------------

[](#manual-installation)

Should you choose not to use Composer to install, you can clone or download this repo and then enable it by editing app/Config/Autoload.php and adding the Myth\\Auth namespace to the $psr4 array. For example, if you copied it into app/ThirdParty:

```
    $psr4 = [
        'Config'            => APPPATH . 'Config',
        APP_NAMESPACE       => APPPATH,
        'App'               => APPPATH,
        'DatatablesBuilder' => APPPATH .'ThirdParty/datatablesbuilder/src',
    ];
```

Features
--------

[](#features)

- Serverside data datatables with pagination
- Helper for initiation datatables
- Customize search datatables
- Customize data with helper function

Configuration
-------------

[](#configuration)

Once installed you need to configure the framework to use the **DatatablesBuilder** library. In your application, perform the following setup

Publish configuration file and JavaScript file with following command

```
php spark dtbuilder:publish
```

You can easily add configuration on **App/Config/Datatables.php**Setup your table with `$tableSetting` variable:

```
    // Example configuration
    public $tableSetting = [
        'users' => [
            'col_title' => 'First Name,Last Name,Adress,Status',
            'col_data' => 'first_name,last_name,address,status',
            'helpers' => [
                'status' => ['formatStatus', '{status}'],
            ],
            'numbering' => true,
            'action_button' => 'edit,delete',
        ],
    ];
```

##### Key **'users'**

[](#key-users)

'users' key must be unique, as it is used to define the table identity and API url. then the access url for table users is `{base_url}/datatables/users`

##### Key **'col\_title'**

[](#key-col_title)

'col\_title' key is used to configure column title in the table

##### Key **'col\_data'**

[](#key-col_data)

'col\_title' key is used to configure column data in the table

##### Key **'helpers'**

[](#key-helpers)

'helpers' key is used for which configuration data will be overwritten with the return of the helper function, the configuration format see the code as follows

```
    'helpers' => [
        'key_name_tobe_overwrite' => ['function_name', 'arguments'],
    ],
```

if argument is more than one then add `|` as a separator between the arguments, add `{key}` if the argument contains the row of data to be displayed. **Example : `'{status}|users'`**

##### Key **'numbering'**

[](#key-numbering)

'numbering' key is used to configure row data with numbering on first column

##### Key **'action\_button'**

[](#key-action_button)

'action\_button' key is used to configure row data with button or links on last column

**The configuration above will produce the following display**

NoFisrt NameLast NameAdressStatusAction Button{no}{fist\_name}{last\_name}{adress}{status}{action\_btn}

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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 ~17 days

Total

5

Last Release

1493d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1aa15e713a8c9832bf0088202d2ea9f9a90aac0cb71b4e5ecf389d790d04de5f?d=identicon)[whykrr](/maintainers/whykrr)

---

Top Contributors

[![whykrr](https://avatars.githubusercontent.com/u/49837987?v=4)](https://github.com/whykrr "whykrr (11 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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