PHPackages                             symon-white/grid-bundle-s3 - 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. symon-white/grid-bundle-s3

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

symon-white/grid-bundle-s3
==========================

Ajax grid for Symfony3

v1.0.0(11y ago)0161MITPHPPHP &gt;=5.3

Since Mar 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/SymonWhite/grid-bundle)[ Packagist](https://packagist.org/packages/symon-white/grid-bundle-s3)[ Docs](http://github.com/pedro-teixeira/grid-bundle)[ RSS](/packages/symon-white-grid-bundle-s3/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (10)Used By (0)

pedro-teixeira/grid-bundle (Symfony3 fork)
==========================================

[](#pedro-teixeiragrid-bundle-symfony3-fork)

[![Build Status](https://camo.githubusercontent.com/7dfcec277c41ee46d8d30c21064465d47a37e07e638e8e14d948c35c7c918423/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f706564726f2d74656978656972612f677269642d62756e646c652e7376673f7374796c653d666c6174)](https://travis-ci.org/pedro-teixeira/grid-bundle) [![Version](https://camo.githubusercontent.com/2b10600cf154f8b7ff6d9203771df5a3b5a2131c153caba2a7155f00a0b957cb/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706564726f2d74656978656972612f677269642d62756e646c652e7376673f7374796c653d666c6174)](https://packagist.org/packages/pedro-teixeira/grid-bundle) [![Downloads](https://camo.githubusercontent.com/5288feae31cf311fab164d1192528c3408e756a282e789e461da622d079c39c3/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706564726f2d74656978656972612f677269642d62756e646c652e7376673f7374796c653d666c6174)](https://packagist.org/packages/pedro-teixeira/grid-bundle) [![License](https://camo.githubusercontent.com/c4a237472b07ea6f7f8b7ff05eb99559c8d7d6ece5adfe6a93a1cb00ba8179eb/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f706564726f2d74656978656972612f677269642d62756e646c652e7376673f7374796c653d666c6174)](https://packagist.org/packages/pedro-teixeira/grid-bundle)

> Ajax grid for Symfony3

Example
-------

[](#example)

[![](https://github.com/pedro-teixeira/grid-bundle/raw/master/Resources/doc/usage.gif)](https://github.com/pedro-teixeira/grid-bundle/blob/master/Resources/doc/usage.gif)

*Using [Twitter Bootstrap](http://twitter.github.com/bootstrap/), [jQuery Bootstrap Datepicker](http://www.eyecon.ro/bootstrap-datepicker/) and fake data with [Faker](https://github.com/fzaninotto/faker).*

Requirements
------------

[](#requirements)

1. [Twitter Bootstrap](http://twitter.github.com/bootstrap/) (not mandatory)
    - If you choose to don't use Twitter Bootstrap, it'll be necessary to create your own style.
2. [jQuery Bootstrap Datepicker](http://www.eyecon.ro/bootstrap-datepicker/) (not mandatory)
    - If you choose to don't use Bootstrap Datepicker, please disable the datepicker as default in the configuration, "use\_datepicker".

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

[](#installation)

1. **Add as a dependency in your composer file**

    ```
    "require": {
        "pedro-teixeira/grid-bundle":"dev-master"
    }
    ```
2. **Add to your Kernel**

    ```
    // application/ApplicationKernel.php
    public function registerBundles()
    {
        $bundles = array(
            new PedroTeixeira\Bundle\GridBundle\PedroTeixeiraGridBundle()
        );
     }
    ```
3. **Add to your assetics configuration**

    ```
    # application/config/config.yml
    assetic:
        bundles: [ PedroTeixeiraGridBundle ]
    ```
4. **Add assets to your layout**

    ```
    {% stylesheets
        '@PedroTeixeiraGridBundle/Resources/public/css/grid.css'
    %}

    {% endstylesheets %}
    ```

    ```
    {% javascripts
        '@PedroTeixeiraGridBundle/Resources/public/js/grid.js'
    %}

    {% endjavascripts %}
    ```
5. **(optional) Adjust configurations**

    ```
    # application/config/config.yml
    pedro_teixeira_grid:
        defaults:
            date:
                use_datepicker:     true
                date_format:        'dd/MM/yy'
                date_time_format:   'dd/MM/yy HH:mm:ss'
            pagination:
                limit:              20
            export:
                enabled:            true
                path:               '/tmp/'
    ```

    The configuration "use\_datepicker" will set the input type as "text" and attach a jQuery plugin "datepicker()" to the filter.

Create your grid
----------------

[](#create-your-grid)

1. **Create the grid class**

    In your bundle, create a folder named "Grid" (or wathever namespace you want) and create your grid definition class.

    ```
