Download the PHP package bartlomiejbeta/filter-sorter-bundle without Composer
On this page you can find all versions of the php package bartlomiejbeta/filter-sorter-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package filter-sorter-bundle
FilterSorterBundle
This Symfony bundle aims to provide structurized filtering and sorting with usage of the specification pattern (see doctrine-specification). It was design to use in the api applications but it could be also used with standard web apps.
Provides feature like:
FilterQueryManager
- it collects allfilter services
and gives you queryBuilder with applied specifications.FilterParamConverter
- providefilter object
by the data in query stringSortParamConverter
- providesort object
by the data in query string
Installation
1. Install via composer:
2. Register bundle in AppKernel
:
Usage
I assume that you already have entities, and so one.
1. Change parent of the entities to AbstractEntitySpecificationAwareRepository
:
example:
2. Add specifications (example)
3. Add Collection filter (example)
4. Add Sort Enum (example)
5. Build and register your first service adapter (adapter example, register adapter example)
5. Run (standard, api with paramConverters)
TODO: Upgrade example to symfony 3.4 Also I prepared full stand alone example
All versions of filter-sorter-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.0
doctrine/doctrine-bundle Version ^1.6
doctrine/orm Version ^2.5
happyr/doctrine-specification Version ^0.7.2
jms/serializer-bundle Version 2.3.1
myclabs/php-enum Version ^1.5
sensio/framework-extra-bundle Version ^3.0
symfony/symfony Version ^3.4|^4.0
doctrine/doctrine-bundle Version ^1.6
doctrine/orm Version ^2.5
happyr/doctrine-specification Version ^0.7.2
jms/serializer-bundle Version 2.3.1
myclabs/php-enum Version ^1.5
sensio/framework-extra-bundle Version ^3.0
symfony/symfony Version ^3.4|^4.0
The package bartlomiejbeta/filter-sorter-bundle contains the following files
Loading the files please wait ....