PHPackages                             zfc-datagrid/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. [Database &amp; ORM](/categories/database)
4. /
5. zfc-datagrid/zfc-datagrid

ActiveLibrary[Database &amp; ORM](/categories/database)

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

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

2.1.0(4y ago)1223.2k↓48.6%11[34 issues](https://github.com/zfc-datagrid/zfc-datagrid/issues)[5 PRs](https://github.com/zfc-datagrid/zfc-datagrid/pulls)MITPHPPHP ^7.3 || ~8.0.0CI failing

Since May 2Pushed 2mo ago4 watchersCompare

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

READMEChangelog (6)Dependencies (20)Versions (51)Used By (0)

Datagrid/Datatable module for Laminas Framework (formerly Zend Framework)
=========================================================================

[](#datagriddatatable-module-for-laminas-framework-formerly-zend-framework)

[![Master Branch Build Status](https://camo.githubusercontent.com/96e9f28846e53af8e6b1d417e3f921c8ce0d93618085e3a0666c02bf0f3ddfb6/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7a66632d64617461677269642f7a66632d64617461677269642e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/zfc-datagrid/zfc-datagrid)[![Coverage Status](https://camo.githubusercontent.com/20b9e669718de8fb9de55946cfc36921339806a6428b098d4856c51ec6a97261/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7a66632d64617461677269642f7a66632d64617461677269642f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/zfc-datagrid/zfc-datagrid?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/886c2afae1ad93180d07d47664eae763996dd6d54db60ffe9ef9befcd8b0a419/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7a66632d64617461677269642f7a66632d64617461677269642f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/zfc-datagrid/zfc-datagrid/?branch=master)

[![Latest Stable Version](https://camo.githubusercontent.com/337fb4cf7a0388c53cedea7ef0334ea8f2436e11a52546bb1ef29f6671f08b24/68747470733a2f2f706f7365722e707567782e6f72672f7a66632d64617461677269642f7a66632d64617461677269642f762f737461626c652e706e67)](https://packagist.org/packages/zfc-datagrid/zfc-datagrid)[![Latest Unstable Version](https://camo.githubusercontent.com/221e759c287a9616faaf3b184defb2ee982d3052ee3c8849a12b02ca814e0ec4/68747470733a2f2f706f7365722e707567782e6f72672f7a66632d64617461677269642f7a66632d64617461677269642f762f756e737461626c652e706e67)](https://packagist.org/packages/zfc-datagrid/zfc-datagrid)[![License](https://camo.githubusercontent.com/4807170b873781968d3c4f7878fe42d8846a6204d8d364085b65b9ce6b30e539/68747470733a2f2f706f7365722e707567782e6f72672f7a66632d64617461677269642f7a66632d64617461677269642f6c6963656e73652e706e67)](https://packagist.org/packages/zfc-datagrid/zfc-datagrid)

[![Join the chat at https://gitter.im/zfc-datagrid/Lobby](https://camo.githubusercontent.com/ca6a13ad159d048f8aa3d7e001f90cec61c2475e3ca0012fdb76fa6d9e837ca5/68747470733a2f2f6261646765732e6769747465722e696d2f7a66632d64617461677269642f4c6f6262792e737667)](https://gitter.im/zfc-datagrid/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[![Total Downloads](https://camo.githubusercontent.com/2b88a1ff49fefc6883469a3f1413557ff8372fedd5033a82971d9bd859ef377d/68747470733a2f2f706f7365722e707567782e6f72672f7a66632d64617461677269642f7a66632d64617461677269642f646f776e6c6f6164732e706e67)](https://packagist.org/packages/zfc-datagrid/zfc-datagrid)[![Monthly Downloads](https://camo.githubusercontent.com/96e843a23b9919390a23f3e48a269bfa6267127c9ba0c6816cf1db04101df332/68747470733a2f2f706f7365722e707567782e6f72672f7a66632d64617461677269642f7a66632d64617461677269642f642f6d6f6e74686c79)](https://packagist.org/packages/zfc-datagrid/zfc-datagrid)

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

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

If you need help, please use following ressources

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

If you want to help out on this project:

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

Features
--------

[](#features)

- Datasources: Doctrine2 (QueryBuilder + Collections), Laminas\\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)

Install it with `composer`

```
composer require zfc-datagrid/zfc-datagrid -o
```

> NOTE: with 1.x we dropped support for other installation technics. Especially the ZF2 autoloading was dropped. You just need to switch to composer installation, which will make your life easier, since it comes with all needed features

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

Finally create the folder: `data/ZfcDatagrid`

You can continue

### Test if it works

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

> NOTE: This needs the additional module `ZfcDatagridExamples` \####Browser####

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

- **PhpArray**
- **Doctrine2**
- **Laminas\\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
```

Continue with your own datagrid
-------------------------------

[](#continue-with-your-own-datagrid)

Please read [Documentation](https://github.com/zfc-datagrid/zfc-datagrid/blob/master/docs/)

You can also use the [zfc-data-grid-plugin](https://github.com/agerecompany/zfc-data-grid-plugin) to create columns with an array configuration, instead of objects!

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

[](#screenshots)

[![ScreenShot](https://camo.githubusercontent.com/39688396b39752aa1d935465f94f57c304213bdb171c7c02d50b7b67d59a0d50/68747470733a2f2f7261772e6769746875622e636f6d2f7a66632d64617461677269642f7a66632d64617461677269642f6d61737465722f646f63732f73637265656e73686f74732f5a666344617461677269645f626f6f7473747261702e6a7067)](https://camo.githubusercontent.com/39688396b39752aa1d935465f94f57c304213bdb171c7c02d50b7b67d59a0d50/68747470733a2f2f7261772e6769746875622e636f6d2f7a66632d64617461677269642f7a66632d64617461677269642f6d61737465722f646f63732f73637265656e73686f74732f5a666344617461677269645f626f6f7473747261702e6a7067)[![ScreenShot](https://camo.githubusercontent.com/49429155055c9b064ba70eff68347d0f4bbedf9587c9cd92bddd4616c2db85ae/68747470733a2f2f7261772e6769746875622e636f6d2f7a66632d64617461677269642f7a66632d64617461677269642f6d61737465722f646f63732f73637265656e73686f74732f5a666344617461677269645f636f6e736f6c652e6a7067)](https://camo.githubusercontent.com/49429155055c9b064ba70eff68347d0f4bbedf9587c9cd92bddd4616c2db85ae/68747470733a2f2f7261772e6769746875622e636f6d2f7a66632d64617461677269642f7a66632d64617461677269642f6d61737465722f646f63732f73637265656e73686f74732f5a666344617461677269645f636f6e736f6c652e6a7067)

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 64% 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 ~65 days

Recently: every ~317 days

Total

48

Last Release

1697d ago

Major Versions

0.11.0 → v1.0.0-beta2015-08-24

v1.5.0 → 2.0.02020-02-21

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

0.9.0PHP &gt;=5.3.23

0.9.2PHP ~5.4|~7.0

v1.0.0-betaPHP ~5.5|~7.0

v1.3.0PHP ~5.6|~7.0

2.0.0PHP ^7.2

2.1.0PHP ^7.3 || ~8.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8fea7c4b3084cad318372880d976af052c4244249f989e15ab3b8d77b6eec27d?d=identicon)[kokspflanze](/maintainers/kokspflanze)

---

Top Contributors

[![ThaDafinser](https://avatars.githubusercontent.com/u/533017?v=4)](https://github.com/ThaDafinser "ThaDafinser (644 commits)")[![kokspflanze](https://avatars.githubusercontent.com/u/1885435?v=4)](https://github.com/kokspflanze "kokspflanze (231 commits)")[![ZeinEddin](https://avatars.githubusercontent.com/u/1671680?v=4)](https://github.com/ZeinEddin "ZeinEddin (62 commits)")[![imonteiro](https://avatars.githubusercontent.com/u/3138089?v=4)](https://github.com/imonteiro "imonteiro (20 commits)")[![e-belair](https://avatars.githubusercontent.com/u/596562?v=4)](https://github.com/e-belair "e-belair (12 commits)")[![weckx](https://avatars.githubusercontent.com/u/1898084?v=4)](https://github.com/weckx "weckx (7 commits)")[![popovserhii](https://avatars.githubusercontent.com/u/1991183?v=4)](https://github.com/popovserhii "popovserhii (7 commits)")[![alessandropietrobelli](https://avatars.githubusercontent.com/u/2904793?v=4)](https://github.com/alessandropietrobelli "alessandropietrobelli (4 commits)")[![webdevilopers](https://avatars.githubusercontent.com/u/3479626?v=4)](https://github.com/webdevilopers "webdevilopers (2 commits)")[![FraGoTe](https://avatars.githubusercontent.com/u/1095778?v=4)](https://github.com/FraGoTe "FraGoTe (2 commits)")[![jonathangreco](https://avatars.githubusercontent.com/u/1587180?v=4)](https://github.com/jonathangreco "jonathangreco (2 commits)")[![LocutusOfPenguin](https://avatars.githubusercontent.com/u/11613118?v=4)](https://github.com/LocutusOfPenguin "LocutusOfPenguin (1 commits)")[![lorenzoferrarajr](https://avatars.githubusercontent.com/u/1518144?v=4)](https://github.com/lorenzoferrarajr "lorenzoferrarajr (1 commits)")[![nsenkevich](https://avatars.githubusercontent.com/u/1181279?v=4)](https://github.com/nsenkevich "nsenkevich (1 commits)")[![olexp](https://avatars.githubusercontent.com/u/8162408?v=4)](https://github.com/olexp "olexp (1 commits)")[![prolic](https://avatars.githubusercontent.com/u/394428?v=4)](https://github.com/prolic "prolic (1 commits)")[![rezix](https://avatars.githubusercontent.com/u/7523882?v=4)](https://github.com/rezix "rezix (1 commits)")[![cbastienbaron](https://avatars.githubusercontent.com/u/1092759?v=4)](https://github.com/cbastienbaron "cbastienbaron (1 commits)")[![Vex](https://avatars.githubusercontent.com/u/191221?v=4)](https://github.com/Vex "Vex (1 commits)")[![vixriihi](https://avatars.githubusercontent.com/u/5203261?v=4)](https://github.com/vixriihi "vixriihi (1 commits)")

---

Tags

bootstrapdatagriddoctrinejqgridzend-dbzend-frameworkzfpdflaminasdoctrineexcelzfmodulebootstrapdatagriddatatableZend Frameworkzf3ZfcDatagridjqgridzfc-datagrid

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[doctrine/doctrine-module

Laminas Module that provides Doctrine basic functionality required for ORM and ODM modules

3957.9M116](/packages/doctrine-doctrine-module)[doctrine/doctrine-orm-module

Laminas Module that provides Doctrine ORM functionality

4407.3M293](/packages/doctrine-doctrine-orm-module)[doctrine/doctrine-mongo-odm-module

Laminas Module which provides Doctrine MongoDB ODM functionality

86676.6k35](/packages/doctrine-doctrine-mongo-odm-module)[kokspflanze/zfc-twig

Laminas/Zend Framework Module that provides a Twig rendering strategy and extensions to render actions or trigger events from your templates

15299.3k4](/packages/kokspflanze-zfc-twig)

PHPackages © 2026

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