Download the PHP package brandoriented/form-filter-bundle without Composer
On this page you can find all versions of the php package brandoriented/form-filter-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download brandoriented/form-filter-bundle
More information about brandoriented/form-filter-bundle
Files in brandoriented/form-filter-bundle
Package form-filter-bundle
Short Description This bundle aim to provide classes to build some form filters and then build a doctrine query from this form filter.
License MIT
Homepage https://github.com/lexik/LexikFormFilterBundle
Informations about the package form-filter-bundle
Overview
This Symfony bundle aims to provide classes to build some form types dedicated to filter an entity. Once you created your form type you will be able to update a doctrine query builder conditions from a form type.
The idea is:
- Create a form type extending from
Symfony\Component\Form\AbstractTypeas usual. - Add form fields by using provided filter types (e.g. use TextFilterType::class instead of a TextType::class type) (*).
- Then call a service to build the query from the form instance and execute your query to get your result :).
(*): In fact you can use any type, but if you want to apply a filter by not using a XxxFilterType::class type you will have to create a custom listener class to apply the filter for this type.
Documentation
This Symfony3.0 branch is compatible with Symfony 2.8/3.0 or higher.
For installation and how to use the bundle refer to Resources/doc/index.md
Running the test suite
composer install
bin/phpunitAll versions of form-filter-bundle with dependencies
symfony/framework-bundle Version ~2.8|~3.0|^4.0
symfony/form Version ~2.8|~3.0|^4.0
doctrine/orm Version ^2.4.8 | 3.0.x-dev

