PHPackages                             fragote/zfc-datagrid - 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. fragote/zfc-datagrid

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

fragote/zfc-datagrid
====================

Zend Framework 2 Module that provides a datagrid for different datasources and output formats

0.10.0(10y ago)153WTFPLPHPPHP ~5.4|~7.0

Since May 2Pushed 10y ago1 watchersCompare

[ Source](https://github.com/FraGoTe/ZfcDatagrid)[ Packagist](https://packagist.org/packages/fragote/zfc-datagrid)[ RSS](/packages/fragote-zfc-datagrid/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (12)Versions (24)Used By (0)

Datagrid/Datatable module for Zend Framework 2
==============================================

[](#datagriddatatable-module-for-zend-framework-2)

[![Master Branch Build Status](https://camo.githubusercontent.com/42871700da3a1121372ca77303e1a56a83401081b41cfda9d01b89f3bc37dbd1/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f546861446166696e7365722f5a666344617461677269642e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/ThaDafinser/ZfcDatagrid)[![HHVM Status](https://camo.githubusercontent.com/a42c55515b7c7d84305e6b2a333206f472778c98771af12b8ecdb6547572bab6/687474703a2f2f6868766d2e683463632e64652f62616467652f746861646166696e7365722f7a66632d64617461677269642e737667)](http://hhvm.h4cc.de/package/thadafinser/zfc-datagrid)[![Coverage Status](https://camo.githubusercontent.com/fa03135a9ef9442a7d728b8319bb4afa48ed6e9c48a6b284259c79a03bd90b0c/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f546861446166696e7365722f5a666344617461677269642f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/ThaDafinser/ZfcDatagrid?branch=master)[![Total Downloads](https://camo.githubusercontent.com/71ad6dc5040cf3e8f05e1b9e685411d0d6ce5e159047ae09e9f59840e111a0e4/68747470733a2f2f706f7365722e707567782e6f72672f746861646166696e7365722f7a66632d64617461677269642f646f776e6c6f6164732e706e67)](https://packagist.org/packages/thadafinser/zfc-datagrid)[![Latest Stable Version](https://camo.githubusercontent.com/da5a7c097ce521c89de465294b9f57031add215ad53001e076f1d95ff0a7c8f6/68747470733a2f2f706f7365722e707567782e6f72672f746861646166696e7365722f7a66632d64617461677269642f762f737461626c652e706e67)](https://packagist.org/packages/thadafinser/zfc-datagrid)[![Latest Unstable Version](https://camo.githubusercontent.com/b86fdb818633ce0557019c435512bcba692c48f3bbaba6a64eafbd8e99dd9a9a/68747470733a2f2f706f7365722e707567782e6f72672f746861646166696e7365722f7a66632d64617461677269642f762f756e737461626c652e706e67)](https://packagist.org/packages/thadafinser/zfc-datagrid)[![License](https://camo.githubusercontent.com/7f3db23a11035fb71886c6523bd8b102097f55c9445f05ce0d7d445be5225b46/68747470733a2f2f706f7365722e707567782e6f72672f746861646166696e7365722f7a66632d64617461677269642f6c6963656e73652e706e67)](https://packagist.org/packages/thadafinser/zfc-datagrid)

A datagrid for ZF2 where the data input and output can be whatever you want...:-)

Over ***330 tests and 1000 assertions*** testing the stability currently!

If you need help, please use following ressources

- [Installation](https://github.com/ThaDafinser/ZfcDatagrid#installation)
- ["Getting started guide"](https://github.com/ThaDafinser/ZfcDatagrid/blob/master/docs/02.%20Quick%20Start.md)
- [Documentation](https://github.com/ThaDafinser/ZfcDatagrid/blob/master/docs/)
- [Code examples](https://github.com/ThaDafinser/ZfcDatagrid/blob/master/src/ZfcDatagrid/Examples/Controller/)
- [Issues/Help](https://github.com/ThaDafinser/ZfcDatagrid/issues)

If you want to help out on this project:

- seek through the [issues](https://github.com/ThaDafinser/ZfcDatagrid/issues)
- [documentation](https://github.com/ThaDafinser/ZfcDatagrid/blob/master/docs/)
- ...any other help

Features
--------

[](#features)

- Datasources: Doctrine2 (QueryBuilder + Collections), Zend\\Db, PhpArray, ... (others possible)
- Output types: jqGrid, Bootstrap table, PDF, Excel, CSV, console, ... (others possible)
    - Bootstrap table with Daterange Filter need to load manually js and css
- different column types
- custom formatting, type based formatting (string, date, number, array...)
- column/row styling for all or based on value comparison
- column filtering and sorting
- external data can be included to the dataset (like gravator or any other)
- pagination
- custom toolbar / view
- ...

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

[](#installation)

### (optional) Create a new ZF2 project

[](#optional-create-a-new-zf2-project)

To get started with a ZF2 application, please see the [Skeleton application](http://framework.zend.com/manual/2.1/en/user-guide/skeleton-application.html)

### Get ZfcDatagrid

[](#get-zfcdatagrid)

Install it with `composer` is easy

```
php composer.phar require thadafinser/zfc-datagrid:dev-master
```

(If you don't have composer: Download it as a zip from github and put in into `vendor/ZfcDatagrid` and make sure that autoloading works)

Add `ZfcDatagrid` to your `config/application.config.php`

Finally create the folder: `data/ZfcDatagrid`

### Test if it works

[](#test-if-it-works)

\####Browser####

> Attention! Only PhpArray works out of the box! For Zend\\Db\\Sql\\Select and Doctrine2 you need to install DoctrineORMModule (Doctrin2 creates the database for Zend\\Db\\Sql\\Select)

**PhpArray**

**Doctrine2**

**Zend\\Db\\Sql\\Select**

\####Console#### If you just type `php index.php` a help for all commands will be shown

```
cd YOUR-PROJECT/public/
php index.php datagrid person
php index.php datagrid person --page 2
php index.php datagrid person --sortBys=age
php index.php datagrid person --sortBys=age,givenName --sortDirs=ASC,DESC
```

Screenshots
-----------

[](#screenshots)

[![ScreenShot](https://camo.githubusercontent.com/db09df4112434ad9fd5d067d52b4b90e8aef51387c6c021d2ea4ec77f9ce32c8/68747470733a2f2f7261772e6769746875622e636f6d2f546861446166696e7365722f5a666344617461677269642f6d61737465722f646f63732f73637265656e73686f74732f5a666344617461677269645f626f6f7473747261702e6a7067)](https://camo.githubusercontent.com/db09df4112434ad9fd5d067d52b4b90e8aef51387c6c021d2ea4ec77f9ce32c8/68747470733a2f2f7261772e6769746875622e636f6d2f546861446166696e7365722f5a666344617461677269642f6d61737465722f646f63732f73637265656e73686f74732f5a666344617461677269645f626f6f7473747261702e6a7067)[![ScreenShot](https://camo.githubusercontent.com/3f4139e889694189c60f863a4bc9cc14f050c92e8e5aaebf045f8549a821d6b6/68747470733a2f2f7261772e6769746875622e636f6d2f546861446166696e7365722f5a666344617461677269642f6d61737465722f646f63732f73637265656e73686f74732f5a666344617461677269645f636f6e736f6c652e6a7067)](https://camo.githubusercontent.com/3f4139e889694189c60f863a4bc9cc14f050c92e8e5aaebf045f8549a821d6b6/68747470733a2f2f7261772e6769746875622e636f6d2f546861446166696e7365722f5a666344617461677269642f6d61737465722f646f63732f73637265656e73686f74732f5a666344617461677269645f636f6e736f6c652e6a7067)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.4% 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 ~38 days

Recently: every ~75 days

Total

22

Last Release

3960d ago

Major Versions

0.9.1 → 165.x-dev2015-03-23

PHP version history (3 changes)0.1.0PHP &gt;=5.3.3

0.9.0PHP &gt;=5.3.23

165.x-devPHP ~5.4|~7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1095778?v=4)[Francis Gonzales](/maintainers/FraGoTe)[@FraGoTe](https://github.com/FraGoTe)

---

Top Contributors

[![ThaDafinser](https://avatars.githubusercontent.com/u/533017?v=4)](https://github.com/ThaDafinser "ThaDafinser (519 commits)")[![ZeinEddin](https://avatars.githubusercontent.com/u/1671680?v=4)](https://github.com/ZeinEddin "ZeinEddin (60 commits)")[![e-belair](https://avatars.githubusercontent.com/u/596562?v=4)](https://github.com/e-belair "e-belair (12 commits)")[![FraGoTe](https://avatars.githubusercontent.com/u/1095778?v=4)](https://github.com/FraGoTe "FraGoTe (5 commits)")[![alessandropietrobelli](https://avatars.githubusercontent.com/u/2904793?v=4)](https://github.com/alessandropietrobelli "alessandropietrobelli (4 commits)")[![imonteiro](https://avatars.githubusercontent.com/u/3138089?v=4)](https://github.com/imonteiro "imonteiro (4 commits)")[![weckx](https://avatars.githubusercontent.com/u/1898084?v=4)](https://github.com/weckx "weckx (3 commits)")[![webdevilopers](https://avatars.githubusercontent.com/u/3479626?v=4)](https://github.com/webdevilopers "webdevilopers (2 commits)")[![nsenkevich](https://avatars.githubusercontent.com/u/1181279?v=4)](https://github.com/nsenkevich "nsenkevich (1 commits)")[![prolic](https://avatars.githubusercontent.com/u/394428?v=4)](https://github.com/prolic "prolic (1 commits)")[![cbastienbaron](https://avatars.githubusercontent.com/u/1092759?v=4)](https://github.com/cbastienbaron "cbastienbaron (1 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")[![igorhaf](https://avatars.githubusercontent.com/u/1664569?v=4)](https://github.com/igorhaf "igorhaf (1 commits)")[![keanor](https://avatars.githubusercontent.com/u/4879588?v=4)](https://github.com/keanor "keanor (1 commits)")

---

Tags

modulezf2datagriddatatableZend FrameworkZfcDatagrid

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fragote-zfc-datagrid/health.svg)

```
[![Health](https://phpackages.com/badges/fragote-zfc-datagrid/health.svg)](https://phpackages.com/packages/fragote-zfc-datagrid)
```

###  Alternatives

[zfr/zfr-rest

Zend Framework 2 REST Module.

8120.6k](/packages/zfr-zfr-rest)[zfc-datagrid/zfc-datagrid

Laminas Module that provides a datagrid for different datasources and output formats

1223.2k](/packages/zfc-datagrid-zfc-datagrid)[snapshotpl/zf-snap-php-debug-bar

PHP Debug Bar module for Zend Framework 2

3026.1k](/packages/snapshotpl-zf-snap-php-debug-bar)

PHPackages © 2026

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