PHPackages                             ekyna/table-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. ekyna/table-bundle

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

ekyna/table-bundle
==================

Table component integration

v0.1(11y ago)11.5k1MITHTMLPHP &gt;=5.3.3

Since Apr 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ekyna/TableBundle)[ Packagist](https://packagist.org/packages/ekyna/table-bundle)[ Docs](https://github.com/ekyna/TableBundle)[ RSS](/packages/ekyna-table-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (11)Used By (1)

TableBundle
===========

[](#tablebundle)

Table component integration.

Instation
---------

[](#instation)

1. Through Composer

```
    composer require ekyna/table-bundle:0.1.*@dev

```

2. Register the bundle in your AppKernel

```
    // app/AppKernel.php
    public function registerBundles()
    {
        $bundles = array(
            // other bundles ...
            new Ekyna\Bundle\TableBundle\EkynaTableBundle(),
        );

        return $bundles;
    }
```

Usage
-----

[](#usage)

1. Create the table type

```
    // src/Acme/DemoBundle/Table/Type/BrandType.php
    namespace Acme\DemoBundle\Table\Type;

    use Ekyna\Component\Table\AbstractTableType;
    use Ekyna\Component\Table\TableBuilderInterface;
    use Symfony\Component\OptionsResolver\OptionsResolverInterface;

    class BrandType extends AbstractTableType
    {
        public function buildTable(TableBuilderInterface $tableBuilder)
        {
            $tableBuilder
                ->addColumn('id', 'number', array(
                    'sortable' => true,
                ))
                ->addColumn('title', 'text', array(
                    'label' => 'Title',
                    'sortable' => true,
                ))
                ->addFilter('id', 'number')
                ->addFilter('title', 'text', array(
                    'label' => 'Title'
                ))
            ;
        }

        public function setDefaultOptions(OptionsResolverInterface $resolver)
        {
            parent::setDefaultOptions($resolver);

            $resolver->setDefaults(array(
                'data_class' => 'Acme\DemoBundle\Entity\Brand',
            ));
        }

        public function getName()
        {
            return 'acme_demo_brand';
        }
    }
```

2. (optional) Register the table type as a service

```

```

3. Create the controller

```
    // src/Acme/DemoBundle/Controller/BrandController.php
    namespace Acme\Demo\Controller;

    use Symfony\Bundle\FrameworkBundle\Controller\Controller;
    use Symfony\Component\HttpFoundation\Request;
    // use Acme\DemoBundle\Table\Type\BrandType;

    class ResourceController extends Controller
    {
        public function indexAction(Request $request)
        {
            $table = $this->get('table.factory')
                /*->createBuilder(new BrandType(), array( // instance
                    'name' => 'my_brand_list,
                ))*/
                ->createBuilder('acme_demo_brand', array( // service
                    'name' => 'my_brand_list',
                ))
                ->getTable($request)
            ;

            return $this->render('AcmeDemoBundle:Brand:index.html.twig', array(
                'brands' => $table->createView(),
            ));
        }
    }
```

4. Create the twig template

```
    # src/Acme/DemoBundle/Resources/views/Brand/index.html.twig

            {% stylesheets output='css/main.css'
                'css/bootstrap.css'
                '@EkynaTableBundle/Resources/asset/css/table.css'
            -%}

            {% endstylesheets %}

            {{ ekyna_table_render(brands) }}

            {% javascripts output='js/main.js'
                'js/jquery.js'
                'js/bootstrap.js'
                '@EkynaTableBundle/Resources/asset/js/table.js'
            -%}

            {%- endjavascripts %}

```

Customization
-------------

[](#customization)

The default template used to render the table is `vendor/ekyna/table-bundle/Ekyna/Bundle/TableBundle/Resources/views/ekyna_table.html.twig`. It requires jQuery and Bootstrap 3.

You can create your own rendering template (where you will define all blocks of the default template) and use it this way

```
    {{ ekyna_table_render(brands, {'template': 'AcmeDemoBundle:Table:render.html.twig'}) }}
```

TODO
----

[](#todo)

- Tests
- Type inheritance
- AJAX
- Adapters (ORM, ODM, PHPCR)
- Render engines
- More documentation (columns, filter, internals, ...)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.5% of commits — single point of failure

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

Recently: every ~808 days

Total

9

Last Release

575d ago

PHP version history (6 changes)v0.1PHP &gt;=5.3.3

0.5.x-devPHP &gt;=5.4.0

0.6.x-devPHP &gt;=5.5.9

0.7.x-devPHP &gt;=7.0

0.8.x-devPHP &gt;=7.4

0.9.x-devPHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3483641?v=4)[Etienne Dauvergne](/maintainers/ekyna)[@ekyna](https://github.com/ekyna)

---

Top Contributors

[![ekyna](https://avatars.githubusercontent.com/u/3483641?v=4)](https://github.com/ekyna "ekyna (39 commits)")[![outspaced](https://avatars.githubusercontent.com/u/101107?v=4)](https://github.com/outspaced "outspaced (1 commits)")

---

Tags

bundleSymfony2table

### Embed Badge

![Health badge](/badges/ekyna-table-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/ekyna-table-bundle/health.svg)](https://phpackages.com/packages/ekyna-table-bundle)
```

###  Alternatives

[stfalcon/tinymce-bundle

This Bundle integrates TinyMCE WYSIWYG editor into a Symfony2 project.

2692.9M24](/packages/stfalcon-tinymce-bundle)[pentatrion/vite-bundle

Vite integration for your Symfony app

2755.3M13](/packages/pentatrion-vite-bundle)[dmishh/settings-bundle

Database centric Symfony configuration management. Global and per-user settings supported.

115254.9k1](/packages/dmishh-settings-bundle)

PHPackages © 2026

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