jQuery DataTables API for codeigniter3

9.0.x-dev 2022-01-18 01:13 UTC

This package is auto-updated.

Last update: 2022-12-01 00:14:26 UTC


This package is created to handle server-side works of DataTables jQuery Plugin via AJAX option by using Eloquent ORM, Fluent Query Builder or Collection.

return datatables()->of(User::query())->toJson();
return datatables()->of(DB::table('users'))->toJson();
return datatables()->of(User::all())->toJson();

return datatables()->eloquent(User::query())->toJson();
return datatables()->query(DB::table('users'))->toJson();
return datatables()->collection(User::all())->toJson();

return datatables(User::query())->toJson();
return datatables(DB::table('users'))->toJson();
return datatables(User::all())->toJson();



DataTables 8.x Upgrade Guide

There are breaking changes since DataTables v8.x. If you are upgrading from v7.x to v8.x, please see upgrade guide.

Quick Installation

$ composer require agungsugiarto/codeigniter-datatabless:"1.x-dev"


Copy datatables.php from vendor/agungsugiarto/codeigniter-datatables/src/config/datatables.php to folder application/config/

And that's it! Start building out some awesome DataTables!

Debugging Mode

To enable debugging mode, just set ENVIROTMENT to development and the package will include the queries and inputs used when processing the table.

It is advised to use Homestead or Valet when working with the package.


Please see CONTRIBUTING for details.


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



The MIT License (MIT). Please see License File for more information.