PHPackages                             cdi/cdidatagrid - 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. cdi/cdidatagrid

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

cdi/cdidatagrid
===============

Zend Framework 2 Module that provides a datagrid

3.2.7(9y ago)1221[2 issues](https://github.com/cincarnato/cdidatagrid/issues)2MITPHPPHP &gt;=5.6

Since May 14Pushed 9y ago2 watchersCompare

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

READMEChangelogDependencies (5)Versions (31)Used By (2)

cdidatagrid zf2
===============

[](#cdidatagrid-zf2)

Zend Framework 2 module.

It allows you to render a datagrid from an Doctrine2 entity.

Features: Paginate, Filter, Order, Add, edit, view and delete records

---

Modulo para Zend Framework 2.

Permite renderizar un datagrid a partir de una entidad de Doctrine 2.

Caracteristicas: Paginar,Filtrar, Ordenar, Agregar, editar, visualizar y eliminar registros

\##Ejemplo/Example:

[![alt tag](https://cloud.githubusercontent.com/assets/7002030/17273141/a97f1a0c-5681-11e6-90ee-de90f478c4af.jpg)](https://cloud.githubusercontent.com/assets/7002030/17273141/a97f1a0c-5681-11e6-90ee-de90f478c4af.jpg)

Simple usage
------------

[](#simple-usage)

```
$grid = $this->getServiceLocator()->get('cdiGrid');
$source = new \CdiDataGrid\DataGrid\Source\Doctrine($this->getEntityManager(), 'CdiCrm\Entity\Ticket');
$grid->setSource($source);
$grid->setRecordsPerPage(5);
$grid->prepare();
$view = new ViewModel(array('grid' => $grid));
return $view;
```

In View
-------

[](#in-view)

```

```

Obs
---

[](#obs)

-The default template need jQuery and Bootstrap

Functions
---------

[](#functions)

After "$grid-&gt;prepare();"

### Hidden Column

[](#hidden-column)

```
$grid->hiddenColumn('columnName');
```

### Change Column Visual Name

[](#change-column-visual-name)

```
$grid->changeColumnName('columnName','newColumnName');
```

### Set DateTime Column Format

[](#set-datetime-column-format)

```
$grid->datetimeColumn('createdAt', 'Y-m-d H:i:s');
```

### Set render a column with a custom view helper

[](#set-render-a-column-with-a-custom-view-helper)

```
$grid->customHelperColumn('columnname',"ViewHelperName");
```

### Set Template to Render

[](#set-template-to-render)

```
$grid->setTemplate("ajax");
```

### Set a custom class to table

[](#set-a-custom-class-to-table)

```
$grid->setTableClass("customClass table-condensed table-striped");
```

### Set a custom class to Column (td)

[](#set-a-custom-class-to-column-td)

```
$grid->classTdColumn('columnName', "customClass text-center col-md-1");
```

many more...

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity69

Established project with proven stability

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

Recently: every ~2 days

Total

29

Last Release

3389d ago

Major Versions

1.6.x-dev → 2.02016-07-30

2.5 → 3.1.02016-11-17

PHP version history (2 changes)v1.0PHP &gt;=5.3.3

3.1.0PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/b93c6666f37f3ad901327f4e6f65f37f7d7e5c64e07ed7f0f246823bb142f5d4?d=identicon)[cincarnato](/maintainers/cincarnato)

---

Top Contributors

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

---

Tags

phppagerpaginatordoctrinezendfilterzfviewmodulecrudzf2zend framework 2datagridtabledatatableDoctrine 2Zend Frameworkzf3deleteZfcDatagridaddordereditZend Framework 3abm

### Embed Badge

![Health badge](/badges/cdi-cdidatagrid/health.svg)

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

###  Alternatives

[zfc-datagrid/zfc-datagrid

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

1223.2k](/packages/zfc-datagrid-zfc-datagrid)[davidhavl/dherrorlogging

Full featured error logging module for ZF2/ZF3 application

1924.5k](/packages/davidhavl-dherrorlogging)

PHPackages © 2026

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