Download the PHP package lch/components-bundle without Composer
On this page you can find all versions of the php package lch/components-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lch/components-bundle
More information about lch/components-bundle
Files in lch/components-bundle
Package components-bundle
Short Description Common components to all LCH bundles
License MIT
Homepage https://github.com/compagnie-hyperactive/ComponentsBundle
Informations about the package components-bundle
Components Bundle
This Symfony bundle provides all necessary bricks needed accross other LCH bundles.
Installation
composer require lch/components-bundle "^1.2.7"
Traits
UUID
Using the Uuidable
will add to your entity a Ramsey UUID identity field.
Note: This does not handle the configuration steps for you.
Repository traits
In order to gather some behavior une one places, we introduce following repository traits.
PaginableEntityRepository
This provides one public method to retrieve a Doctrine Paginator
object. Below is the signature
Everything is straightforward here.
CountableEntityRepository
This provides a simple method to easily get total query items count.
SearchableEntityRepository
Full text search method
This is useful for example in AJAX actions (in a not-API context) where you need to retrieve a list of entity in large term context : classical AJAX search.
Twig
Macros
Simple admin pagination
If using PaginableEntityRepository
above, you can then pass pagination object
Then in twig you can generate simple pagination component:
All versions of components-bundle with dependencies
symfony/framework-bundle Version ^4.4
symfony/translation Version ^4.4
ramsey/uuid-doctrine Version ^1.5
lch/translate-bundle Version 0.5.3