Download the PHP package warslett/table-builder-bundle without Composer
On this page you can find all versions of the php package warslett/table-builder-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download warslett/table-builder-bundle
More information about warslett/table-builder-bundle
Files in warslett/table-builder-bundle
Package table-builder-bundle
Short Description A symfony bundle for integration warslett/table-builder into your symfony app. Table building, table abstraction and table rendering.
License MIT
Informations about the package table-builder-bundle
Table Builder Bundle
warslett/table-builder:
warslett/table-builder-bundle:
Table builder bundle provides integration with the warslett/table-builder package and the symfony framework. This bundle will register the required services and extensions in Symfony to allow you to use the table-builder package in a symfony project with minimal setup.
Installation
composer require warslett/table-builder-bundle warslett/table-builder
Documentation
Full documentation available here.
Setup
Add the bundle to your config/bundles.php array (this will be done automatically for you if you are using symfony flex)
Usage
Inject the TableBuilderFactoryInterface service into your controller to build a table and load data into it using an adapter:
Then in your template you can render the table like this:
Which will render your table with pagination and sorting working out the box.
You can render two tables on the same page and they will sort and paginate independently.
Config
You can also register cell value transformers for the Csv Renderer using service tags:
Themeing
Create your own table theme in twig:
Then just update the value for theme_template in your config to your new theme template
Documentation
Full documentation will be available at the repo for the core repository https://github.com/warslett/table-builder/blob/master/README.md
All versions of table-builder-bundle with dependencies
warslett/table-builder Version ^0
symfony/dependency-injection Version ^5.1|^6.0
symfony/config Version ^5.1|^6.0