PHPackages                             techlab/smartgrid - 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. techlab/smartgrid

ActiveCodeigniter-library[Utility &amp; Helpers](/categories/utility)

techlab/smartgrid
=================

SmartGrid for CodeIgniter with Bootstrap

v0.6.5-beta(9y ago)18816[3 issues](https://github.com/techlab/codeigniter-smartgrid/issues)MITPHPPHP &gt;=5.2.4

Since Apr 19Pushed 9y ago2 watchersCompare

[ Source](https://github.com/techlab/codeigniter-smartgrid)[ Packagist](https://packagist.org/packages/techlab/smartgrid)[ Docs](http://techlaboratory.net/smartgrid)[ RSS](/packages/techlab-smartgrid/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (1)Versions (2)Used By (0)

CodeIgniter SmartGrid
=====================

[](#codeigniter-smartgrid)

### A simple PHP datagrid control for CodeIgniter with Bootstrap support

[](#a-simple-php-datagrid-control-for-codeigniter-with-bootstrap-support)

SmartGrid focus on data display than data manipulation. We are starting with limited features to make the code very simple and robust, yet we will be adding more feature on the go. The code is very simple and well documented, which make it easy for customization.

- [Homepage](http://techlaboratory.net/smartgrid)
- [Documentation](http://techlaboratory.net/smartgrid/documentation)

Demos
-----

[](#demos)

- [Basic](http://techlaboratory.net/smartgrid/demo/example-smartgrid)
- [Array Datasource](http://techlaboratory.net/smartgrid/demo/example-array-grid)
- [with DataTables](http://techlaboratory.net/smartgrid/demo/example-smartgrid_and-datatables)

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

[](#requirements)

- [CodeIgniter 3.x](https://codeigniter.com/download)
- [Bootstrap 3+](http://getbootstrap.com/getting-started/#download)

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

[](#installation)

1. [Download](https://github.com/techlab/codeigniter-smartgrid/archive/master.zip) the source files
2. Copy the folder and files `application/libraries/SmartGrid/` to `application/libraries/` folder of your CodeIgniter installation
3. That's it! Start using with the examples below or at [application/controllers/Example\_smartgrid.php](https://github.com/techlab/codeigniter-smartgrid/blob/master/application/controllers/Example_smartgrid.php)

Example usage
-------------

[](#example-usage)

on your controller:

```
// Load the SmartGrid Library
$this->load->library('SmartGrid/Smartgrid');

// MySQL Query to get data
$sql = "SELECT * FROM employee";

// Column settings
$columns = array("employee_id"=>array("header"=>"Employee ID", "type"=>"label"),
                "employee_name"=>array("header"=>"Name", "type"=>"label"),
                "employee_designation"=>array("header"=>"Designation", "type"=>"label")
        );

// Set the grid
$this->smartgrid->set_grid($sql, $columns);

// Render the grid and assign to data array, so it can be print to on the view
$data['grid_html'] = $this->smartgrid->render_grid();

// Load view
$this->load->view('example_smartgrid', $data);
```

and then, on your view:

```

```

```
// Print the grid html
echo $grid_html;
```

Features
--------

[](#features)

- Simple datagrid for data display
- Accepts both MySQL query and array data
- Automatic Pagination
- Uses Twitter Bootstrap for styling, so easy to style with any bootstrap template
- No extra css or js files to include

Limitations
-----------

[](#limitations)

- Add, Edit, Del, Themes, Export, Search and Sort are not supported
- Search, Sort, Themes, Export features are on pipeline
- Database support: MySQL only for now
- Language support: English only for now
- Ajax is not support now

Version
-------

[](#version)

**SmartGrid v0.6.5-beta**

> Notice:- SmartGrid is on beta version, usage on production environment is not recommended unless tested well. Please report issue at [github issues](https://github.com/techlab/codeigniter-smartgrid/issues/)

License
-------

[](#license)

[MIT License](https://github.com/techlab/codeigniter-smartgrid/blob/master/LICENSE)

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

3359d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c126b08e48aa49997c9019a4b1a281a17194eddbb5311e526f938a132fff610?d=identicon)[techlab](/maintainers/techlab)

---

Top Contributors

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

---

Tags

bootstrapcodeigniterdatagridmysqlphplibrarycodeigniterdatagridsmartgrid

### Embed Badge

![Health badge](/badges/techlab-smartgrid/health.svg)

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

PHPackages © 2026

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