PHPackages                             edweld/datatablesbundle - 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. [Admin Panels](/categories/admin)
4. /
5. edweld/datatablesbundle

ActiveSymfony-bundle[Admin Panels](/categories/admin)

edweld/datatablesbundle
=======================

Symfony Datatable Bundle For Doctrine2 Entities

v0.11(9y ago)023MITPHPPHP &gt;=5.3.3

Since Oct 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/edweld/DatatablesBundle)[ Packagist](https://packagist.org/packages/edweld/datatablesbundle)[ Docs](https://github.com/stwe/DatatablesBundle)[ RSS](/packages/edweld-datatablesbundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (6)Versions (19)Used By (0)

SgDatatablesBundle
==================

[](#sgdatatablesbundle)

[![SensioLabsInsight](https://camo.githubusercontent.com/72cbcfb4bea57c3472609ec4327e0a6187cf723bfe4acecaa161ab20ee7fc340/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f36313830336430382d313761622d346136392d616431332d3665633434383736323333322f6269672e706e67)](https://insight.sensiolabs.com/projects/61803d08-17ab-4a69-ad13-6ec448762332)

[![knpbundles.com](https://camo.githubusercontent.com/bf8e9611c8649e325732f5847abf79196256b166924ec7ec1c03f1d720495cf5/687474703a2f2f6b6e7062756e646c65732e636f6d2f737477652f446174617461626c657342756e646c652f6261646765)](http://knpbundles.com/stwe/DatatablesBundle)

[![Build Status](https://camo.githubusercontent.com/f1f90956b3645426e24fe5fc1df87f63a4a93de9c63f7868bca2373840c232f5/68747470733a2f2f7472617669732d63692e6f72672f737477652f446174617461626c657342756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/stwe/DatatablesBundle)

[![Latest Stable Version](https://camo.githubusercontent.com/2b831f04f02b689fe24228f4f487753b83c6c72ed2c11e42ea94d27c404132d5/68747470733a2f2f706f7365722e707567782e6f72672f73672f646174617461626c657362756e646c652f762f737461626c65)](https://packagist.org/packages/sg/datatablesbundle) [![Total Downloads](https://camo.githubusercontent.com/3eb991f94cf98963e5cc4ae9d2e7b9d6dfe1c498169acf12595d4cd154221ed7/68747470733a2f2f706f7365722e707567782e6f72672f73672f646174617461626c657362756e646c652f646f776e6c6f616473)](https://packagist.org/packages/sg/datatablesbundle) [![Latest Unstable Version](https://camo.githubusercontent.com/09e10ff58452723671b1b93ae894c57832c424d16d482376397341ac5f09c876/68747470733a2f2f706f7365722e707567782e6f72672f73672f646174617461626c657362756e646c652f762f756e737461626c65)](https://packagist.org/packages/sg/datatablesbundle) [![License](https://camo.githubusercontent.com/091dbef2d3da85611bb17b60f0f979e4c8f233674581abf1cc71e0987dcbbf34/68747470733a2f2f706f7365722e707567782e6f72672f73672f646174617461626c657362756e646c652f6c6963656e7365)](https://packagist.org/packages/sg/datatablesbundle)

Recent Changes
--------------

[](#recent-changes)

### In-place editing callback (#372)

[](#in-place-editing-callback-372)

```
$this->columnBuilder
    ->add('name', 'column', array(
        'title' => 'Name',
        'editable' => true,
        'editable_if' => function($row) {
            return (
                $this->authorizationChecker->isGranted('ROLE_USER') &&
                $row['public'] == true
            );
        }
    ))

```

### Pipelining to reduce Ajax calls

[](#pipelining-to-reduce-ajax-calls)

```
$this->ajax->set(array(
    'url' => $this->router->generate('chili_private_results'),
    'pipeline' => 6
));

```

### Search result highlighting.

[](#search-result-highlighting)

1. Include the [jQuery Highlight Plugin](http://bartaz.github.io/sandbox.js/jquery.highlight.html)
2. Configure your Datatables-Class features

```
$this->features->set(array(
    // ...
    'highlight' => true,
    'highlight_color' => 'red' // 'red' is the default value
));

```

### Enlargement of thumbnails with Featherlight

[](#enlargement-of-thumbnails-with-featherlight)

see [\#401](https://github.com/stwe/DatatablesBundle/issues/401)

The Bootstrap modal window does not work properly in responsive mode.

Load [Featherlight](https://github.com/noelboss/featherlight/) with your base layout.

### `add_if` Closure for all Columns and TopActions

[](#add_if-closure-for-all-columns-and-topactions)

```
$this->columnBuilder
    ->add('title', 'column', array(
        // ...
        'add_if' => function() {
            return ($this->authorizationChecker->isGranted('ROLE_ADMIN'));
        },
    ))
;

```

```
$this->topActions->set(array(
    // ...
    'add_if' => function() {
        return ($this->authorizationChecker->isGranted('ROLE_ADMIN'));
    },
    'actions' => array(
        // ...
    )
));

```

### Render Actions

[](#render-actions)

**before**

```
'actions' => array(
    array(
        'route' => 'post_edit',
        'route_parameters' => array(
            'id' => 'id'
        ),
        'role' => 'ROLE_ADMIN',
        'render_if' => function($row) {
            return ($row['title'] === 'Title 1');
        },
    ),
    // ...

```

**after**

```
'actions' => array(
    array(
        'route' => 'post_edit',
        'route_parameters' => array(
            'id' => 'id'
        ),
        'render_if' => function($row) {
            return (
                $this->authorizationChecker->isGranted('ROLE_USER') &&
                $row['user']['username'] == $this->getUser()->getUsername()
            );
        },
    ),
    // ...

```

### Multiselect: render checkboxes only if conditions are True

[](#multiselect-render-checkboxes-only-if-conditions-are-true)

```
$this->columnBuilder
    ->add('title', 'multiselect', array(
        // ...
        'render_checkbox_if' => function($row) {
            return ($row['public'] == true);
        },
    ))
;

```

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

[](#screenshots)

### Table with Bootstrap3 integration:

[](#table-with-bootstrap3-integration)

[![Screenshot](https://github.com/stwe/DatatablesBundle/raw/master/Resources/images/sc1.jpg)](https://github.com/stwe/DatatablesBundle/raw/master/Resources/images/sc1.jpg)

Documentation
-------------

[](#documentation)

[Installation](https://github.com/stwe/DatatablesBundle/blob/master/Resources/doc/installation.md)

[Column types](https://github.com/stwe/DatatablesBundle/blob/master/Resources/doc/columns.md)

[In-place editing](https://github.com/stwe/DatatablesBundle/blob/master/Resources/doc/editable.md)

[How to use the ColumnBuilder](https://github.com/stwe/DatatablesBundle/blob/master/Resources/doc/columnBuilder.md)

[Setup Datatable Class](https://github.com/stwe/DatatablesBundle/blob/master/Resources/doc/setup.md)

[Filtering](https://github.com/stwe/DatatablesBundle/blob/master/Resources/doc/filter.md)

[To use a line formatter](https://github.com/stwe/DatatablesBundle/blob/master/Resources/doc/lineFormatter.md)

[Query callbacks](https://github.com/stwe/DatatablesBundle/blob/master/Resources/doc/query.md)

[Extensions like Buttons or Responsive](https://github.com/stwe/DatatablesBundle/blob/master/Resources/doc/extensions.md)

[Options of the generator](https://github.com/stwe/DatatablesBundle/blob/master/Resources/doc/generator.md)

[Reference configuration](https://github.com/stwe/DatatablesBundle/blob/master/Resources/doc/configuration.md)

Example
-------

[](#example)

[Demo Application](https://github.com/stwe/DtBundleDemo)

Integrating 3rd party stuff
---------------------------

[](#integrating-3rd-party-stuff)

[Integrate Bootstrap3](https://github.com/stwe/DatatablesBundle/blob/master/Resources/doc/bootstrap3.md)

[Integrate the Translatable behavior extension for Doctrine 2](https://github.com/stwe/DatatablesBundle/blob/master/Resources/doc/translatable.md)

[Integrate the LiipImagineBundle / ImageColumn, GalleryColumn and thumbnails](https://github.com/stwe/DatatablesBundle/blob/master/Resources/doc/thumbs.md)

Limitations and Known Issues
----------------------------

[](#limitations-and-known-issues)

Much like every other piece of software `SgDatatablesBundle` is not perfect and far from feature complete.

- This bundle does not support multiple Ids.
- Searching and filtering on a virtual column not yet implemented and disabled by default.
- PostgreSql is currently not fully supported.

Reporting an issue or a feature request
---------------------------------------

[](#reporting-an-issue-or-a-feature-request)

Issues and feature requests are tracked in the [Github issue tracker](https://github.com/stwe/DatatablesBundle/issues).

**You must know that all the pull requests you are going to submit must be released under the MIT license.**

Friendly License
----------------

[](#friendly-license)

This bundle is under the MIT license. See the complete license in the bundle:

```
Resources/meta/LICENSE

```

You are free to use, modify and distribute this software, as long as the copyright header is left intact (specifically the comment block which starts with /\*)!

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor7

7 contributors hold 50%+ of commits

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

Recently: every ~82 days

Total

18

Last Release

3639d ago

PHP version history (2 changes)v0.1PHP &gt;=5.3.2

v0.10PHP &gt;=5.3.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b93d71282ec25b22d555cad25cd2d7f23bcb77f07ebdbe7cdd79f7f2f785e76?d=identicon)[edweld](/maintainers/edweld)

---

Top Contributors

[![dchabanenko](https://avatars.githubusercontent.com/u/7962510?v=4)](https://github.com/dchabanenko "dchabanenko (9 commits)")[![celvin](https://avatars.githubusercontent.com/u/182253?v=4)](https://github.com/celvin "celvin (7 commits)")[![TNAJanssen](https://avatars.githubusercontent.com/u/2812277?v=4)](https://github.com/TNAJanssen "TNAJanssen (7 commits)")[![stwe](https://avatars.githubusercontent.com/u/2964748?v=4)](https://github.com/stwe "stwe (6 commits)")[![dustfeather](https://avatars.githubusercontent.com/u/2559407?v=4)](https://github.com/dustfeather "dustfeather (6 commits)")[![Noles](https://avatars.githubusercontent.com/u/3484086?v=4)](https://github.com/Noles "Noles (3 commits)")[![eugenekkh](https://avatars.githubusercontent.com/u/8081158?v=4)](https://github.com/eugenekkh "eugenekkh (3 commits)")[![SilvioMessi](https://avatars.githubusercontent.com/u/8142782?v=4)](https://github.com/SilvioMessi "SilvioMessi (3 commits)")[![imanalopher](https://avatars.githubusercontent.com/u/3912614?v=4)](https://github.com/imanalopher "imanalopher (3 commits)")[![zgoniaiko](https://avatars.githubusercontent.com/u/1003107?v=4)](https://github.com/zgoniaiko "zgoniaiko (3 commits)")[![lsv](https://avatars.githubusercontent.com/u/20708?v=4)](https://github.com/lsv "lsv (3 commits)")[![samuel4x4](https://avatars.githubusercontent.com/u/3427855?v=4)](https://github.com/samuel4x4 "samuel4x4 (2 commits)")[![pierredup](https://avatars.githubusercontent.com/u/144858?v=4)](https://github.com/pierredup "pierredup (2 commits)")[![arianmaykon](https://avatars.githubusercontent.com/u/40794?v=4)](https://github.com/arianmaykon "arianmaykon (2 commits)")[![nicodmf](https://avatars.githubusercontent.com/u/173332?v=4)](https://github.com/nicodmf "nicodmf (2 commits)")[![BigZ](https://avatars.githubusercontent.com/u/42766?v=4)](https://github.com/BigZ "BigZ (2 commits)")[![migmolrod](https://avatars.githubusercontent.com/u/5715026?v=4)](https://github.com/migmolrod "migmolrod (2 commits)")[![inmarelibero](https://avatars.githubusercontent.com/u/254808?v=4)](https://github.com/inmarelibero "inmarelibero (2 commits)")[![Minishlink](https://avatars.githubusercontent.com/u/82368?v=4)](https://github.com/Minishlink "Minishlink (2 commits)")[![mennowame](https://avatars.githubusercontent.com/u/10498358?v=4)](https://github.com/mennowame "mennowame (1 commits)")

---

Tags

paginationSymfony2datatablesgriddatagridtabledatatablesymfony3

### Embed Badge

![Health badge](/badges/edweld-datatablesbundle/health.svg)

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

###  Alternatives

[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1714.8k8](/packages/2lenet-crudit-bundle)[fsi/admin-bundle

FSi Admin Bundle. Admin generator for Symfony.

5849.2k7](/packages/fsi-admin-bundle)[mmucklo/grid-bundle

Datagrid for symfony2 or symfony3 or symfony4 or symfony5

21343.7k3](/packages/mmucklo-grid-bundle)[datatheke/pager-bundle

Pager &amp; DataGrid bundle for Symfony

112.7k](/packages/datatheke-pager-bundle)[tomshaw/electricgrid

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

116.6k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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