brandoriented / form-filter-bundle
This bundle aim to provide classes to build some form filters and then build a doctrine query from this form filter.
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 120
Type:symfony-bundle
Requires
- php: >=5.5.9
- doctrine/orm: ^2.4.8 | 3.0.x-dev
- symfony/form: ~2.8|~3.0|^4.0
- symfony/framework-bundle: ~2.8|~3.0|^4.0
Requires (Dev)
- doctrine/mongodb-odm-bundle: ~3.0
- phpunit/phpunit: ^5.7|~6.0
- v5.0.8
- v5.0.7
- v5.0.6
- v5.0.5
- v5.0.4
- v5.0.3
- v5.0.2
- v5.0.1
- v5.0.0
- dev-master / 5.x-dev
- v4.0.2
- v4.0.1
- v4.0.0
- v3.0.8
- v3.0.7
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.x-dev
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.0
- v0.0.3
- dev-fix_250
- dev-symfony2.0
This package is auto-updated.
Last update: 2024-10-29 04:20:14 UTC
README
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 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/phpunit