PHPackages                             spyrit/propel-datagrid-bundle - 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. spyrit/propel-datagrid-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

spyrit/propel-datagrid-bundle
=============================

Symfony2 Datagrid Bundle for Propel.

5.2.0(3mo ago)344.7k↓30.8%3MITPHPPHP &gt;=7.4.0CI failing

Since Mar 3Pushed 3mo ago8 watchersCompare

[ Source](https://github.com/spyrit/PropelDatagridBundle)[ Packagist](https://packagist.org/packages/spyrit/propel-datagrid-bundle)[ Docs](https://github.com/spyrit/DatagridBundle.git)[ RSS](/packages/spyrit-propel-datagrid-bundle/feed)WikiDiscussions 5.x Synced 1mo ago

READMEChangelogDependencies (11)Versions (30)Used By (0)

PropelDatagridBundle
====================

[](#propeldatagridbundle)

[![Join the chat at https://gitter.im/spyrit/PropelDatagridBundle](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/spyrit/PropelDatagridBundle?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[![Build Status](https://camo.githubusercontent.com/f9c20384fd8e497d820f2112815de40e018316256299c382539e631c87816838/68747470733a2f2f7472617669732d63692e6f72672f7370797269742f50726f70656c446174616772696442756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/spyrit/PropelDatagridBundle)

This bundle helps you to create and manage simple to complex datagrids quickly and easily.

Unlike other similar bundle already available on github and/or packagist, there is no magic method that will render the datagrid in you view. This technical choice allow you to completely customize your datagrid aspect and render (filter fields, buttons, columns, data displayed in each column, pagination links and informations, etc.)

This make it easy to implement and use in both back-end and front-end applications.

Still skeptical ? Let's see how it works !

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

[](#installation)

### Get the code

[](#get-the-code)

Since composer is the simplest and fastest way to install dependencies, the only way to install this bundle automatically is to add the following line to your dependencies

```
composer require spyrit/propel-datagrid-bundle

```

- Branches 1.x (unmaintained) are for Propel1 and Symfony2
    - Branch 1.0 is for backward-compatibility with old projects (PHP &lt; 5.4).
    - Branch 1.1 requires PHP-5.4+ for `csanquer/colibri-csv 1.2`
    - Branch 1.2 integrates new functionnalities like dynamic max-per-page value
    - Branch 1.3 implements batch (mass) actions
- Branches 2.x (unmaintained) are for Propel2 and Symfony2
    - Branch 2.0 is for backward-compatibility with old projects (PHP &lt; 5.4).
    - Branch 2.1 requires PHP-5.4+ for `csanquer/colibri-csv` 1.2
    - Branch 2.2 integrates new functionnalities like dynamic max-per-page value
    - Branch 2.3 implements batch (mass) actions
- Branch 3.0 (unmaintained) is for Propel2 and Symfony3
- Branch 4.0 (unmaintained) is for Propel2 and Symfony4
- Branch 5.0 (maintained) is for Propel2 and Symfony5
- Branch 6.0 (maintained) is for Propel2 and Symfony6
    - requires PHP-7.4+
    - requires `spyrit/colibri-csv` 1.3
    - recommends the usage of PropelBundle fork in your composer.json
    - BC: DataGrid no longer depends of `Symfony\Component\DependencyInjection\ContainerInterface`. It depends of
        - `Symfony\Component\HttpFoundation\RequestStack`
        - `Symfony\Component\Form\FormFactoryInterface`
        - `Symfony\Component\Routing\RouterInterface`
    - BC: Use service autowiring, see

### Enable the bundle

[](#enable-the-bundle)

Enable the bundle in your application

```
// config/bundles.php
