PHPackages                             imade/datatable-model - 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. imade/datatable-model

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

imade/datatable-model
=====================

A dedicated class (model) to configure Chumper's Datatable package for Laravel (https://github.com/Chumper/Datatable) to keep your controllers as clean as possible.

v1.0(11y ago)2179MITPHPPHP &gt;=5.3.0

Since Aug 7Pushed 11y ago1 watchersCompare

[ Source](https://github.com/imade-nl/Datatable-Model)[ Packagist](https://packagist.org/packages/imade/datatable-model)[ RSS](/packages/imade-datatable-model/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Datatable Model
===============

[](#datatable-model)

This is a **laravel 5 package** for the server and client side of datatables at

A dedicated class (model) to configure Datatables.net for Laravel to keep your controllers as clean as possible.

\##Example

Your Userscontroller:

```
class UsersController extends \BaseController {

	/**
	 * Display a listing of the resource.
	 *
	 * @return Response
	 */
	public function index()
	{
		$table = new UserDatatable();

		if($table->dataRequest()) return $table->data();

		return View::make('resource.index')->withTable($table);
	}
}
```

Dedicated UserDatatable. This class is required to extend "Imade\\Datatable\\DatatableModel". The two methods "data" and "table" are required.

```
	use Imade\Datatable\DatatableModel;

	class UserDatatable extends DatatableModel
	{
		public $columns = array(
			'id' => '#',
			'name' => 'Naam',
			'email' => 'E-mail'
		);

		public function data()
		{
			$query = User::select( array_keys($this->columns) );

			return Datatable::query($query)
				->showColumns( array_keys($this->columns) )
				->make();
		}

		public function table()
		{
			return Datatable::table()
				->addColumn( array_values($this->columns) );
		}
	}
```

\##Install

1. Install Datatable on:
2. Require Imade/Datatable in your composer.json:

```
	"imade/datatable-model": "dev-master"
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

4301d ago

Major Versions

v0.1 → v1.02014-08-07

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/366211?v=4)[Innar Made](/maintainers/imade)[@imade](https://github.com/imade)

---

Top Contributors

[![imade-nl](https://avatars.githubusercontent.com/u/852130?v=4)](https://github.com/imade-nl "imade-nl (22 commits)")

---

Tags

laravelmodeldatatable

### Embed Badge

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

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

###  Alternatives

[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

116.6k](/packages/tomshaw-electricgrid)[mtrdesign/krait

Krait provides an easy way to create Ajax Datatables.

101.9k](/packages/mtrdesign-krait)

PHPackages © 2026

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