PHPackages                             uvoelkel/serverside-datatables-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. [API Development](/categories/api)
4. /
5. uvoelkel/serverside-datatables-bundle

ActiveLibrary[API Development](/categories/api)

uvoelkel/serverside-datatables-bundle
=====================================

DataTables integration for Symfony

5.0.0(4y ago)52.7k2[3 issues](https://github.com/uvoelkel/serverside-datatables-bundle/issues)[2 PRs](https://github.com/uvoelkel/serverside-datatables-bundle/pulls)MITPHPPHP &gt;=7.0.0

Since Nov 14Pushed 1w ago1 watchersCompare

[ Source](https://github.com/uvoelkel/serverside-datatables-bundle)[ Packagist](https://packagist.org/packages/uvoelkel/serverside-datatables-bundle)[ Docs](https://github.com/uvoelkel)[ RSS](/packages/uvoelkel-serverside-datatables-bundle/feed)WikiDiscussions sf8 Synced today

READMEChangelogDependencies (4)Versions (7)Used By (0)

DataTablesBundle
================

[](#datatablesbundle)

[![Build Status](https://camo.githubusercontent.com/08a470f3ab254b08ed0c9feb34f539b3f9bea8555dcc3367eafe359eab2035ee/68747470733a2f2f7472617669732d63692e6f72672f75766f656c6b656c2f736572766572736964652d646174617461626c65732d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/uvoelkel/serverside-datatables-bundle)

What it does
------------

[](#what-it-does)

The DataTablesBundle let's you easily create (sortable and filterable) [serverSide](http://datatables.net/reference/option/serverSide)[DataTables](http://datatables.net/) from Doctrine entities.

License
-------

[](#license)

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

```
LICENSE

```

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

[](#installation)

Enable the bundle by adding the following line in the `app/AppKernel.php`file of your project:

```
# app/AppKernel.php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Voelkel\DataTablesBundle\VoelkelDataTablesBundle(),
        );

        // ...
    }

    // ...
}
```

Configuration
-------------

[](#configuration)

After installing the bundle, make sure you add this route to your routing:

```
# app/config/routing.yml
datatables:
    resource: "@VoelkelDataTablesBundle/Resources/config/routing.xml"

```

### Localization

[](#localization)

```
# app/config/config.yml
voelkel_data_tables:
    localization:
        locale: "%locale%"
        data:
            true: "Jepp"
            false: "Nope"
            datetime: "Y-m-d H:i:s"

```

Usage
-----

[](#usage)

Create a Table definition

```
# AppBundle/DataTable/CustomerTable.php
