PHPackages                             kibatic/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kibatic/datagrid-bundle

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

kibatic/datagrid-bundle
=======================

Datagrid for Symfony

v1.3.9(2mo ago)1418.3k↓42.9%2[4 issues](https://github.com/kibatic/datagrid-bundle/issues)MITPHPPHP ^8.1

Since May 25Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/kibatic/datagrid-bundle)[ Packagist](https://packagist.org/packages/kibatic/datagrid-bundle)[ RSS](/packages/kibatic-datagrid-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (18)Versions (60)Used By (0)

Kibatic Datagrid Bundle
=======================

[](#kibatic-datagrid-bundle)

Datagrid bundle for Symfony with the following design philosophy : less magic for more flexibility.

It's not the usual one line datagrid generator, it's a more verbose one but we think it's worth it.

Features
--------

[](#features)

- Your entities in a table
- Pagination
- Sortable
- Filterable
- Actions (single &amp; batch)
- Customizable templates
- Only supports Doctrine ORM
- Theme support (Bootstrap 5 included)

Quick start
-----------

[](#quick-start)

### Install the bundle

[](#install-the-bundle)

```
composer require kibatic/datagrid-bundle
```

Add this to your `assets/controllers.json` :

```
{
    "controllers": {
        "@kibatic/datagrid-bundle": {
            "checker": {
                "enabled": true,
                "fetch": "eager"
            }
        }
}
```

You'll most likely also need to enable this twig function : [https://twig.symfony.com/doc/2.x/functions/template\_from\_string.html](https://twig.symfony.com/doc/2.x/functions/template_from_string.html)

It's not a hard dependency but some features shown here also requires you to install `kibatic/ux-bundle` :

```
composer require kibatic/ux-bundle
```

If you want to use the default templates styles and you don't have bootstrap css loaded yet, you will need to. If you're using AssetMapper, you can simply add this to your `assets/app.js` :

```
import 'bootstrap/dist/css/bootstrap.min.css';
```

### Basic usage

[](#basic-usage)

You can simply generate a specialized datagrid builder class skeleton using the make command :

```
bin/console make:datagrid

```

Or do everything manually, for example in your controller :

```
