Download the PHP package lexik/form-filter-bundle without Composer
On this page you can find all versions of the php package lexik/form-filter-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package form-filter-bundle
LexikFormFilterBundle
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\AbstractType
as 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 Symfony bundle is compatible with Symfony 4.3 or higher.
For Symfony 2.8/3.4 please use tags v5.*
For installation and how to use the bundle refer to Resources/doc/index.md
- Installation
- Configuration
- Provided form types
- Example & inner workings
- Simple example
- Inner workings
- Working with the filters
- Customize condition operator
- Filter customization
- Working with entity associations and embeddeding filters
- Doctrine embeddables
- Create your own filter type
- Enable validation on your filter type
- The FilterTypeExtension
- Working with other bundles
- KNP Paginator example
Community Support
Please consider opening a question on StackOverflow using the lexikformfilterbundle
tag, it is the official support platform for this bundle.
Github Issues are dedicated to bug reports and feature requests.
Symfony 2.8 and 3.4
Please use last tag v5.*
Credits
License
This bundle is under the MIT license.
For the whole copyright, see the LICENSE file distributed with this source code.
All versions of form-filter-bundle with dependencies
doctrine/orm Version ^2.10
symfony/form Version ^5.3|^6.0
symfony/framework-bundle Version ^5.3|^6.0