Download the PHP package ongr/filter-manager-bundle without Composer
On this page you can find all versions of the php package ongr/filter-manager-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ongr/filter-manager-bundle
More information about ongr/filter-manager-bundle
Files in ongr/filter-manager-bundle
Package filter-manager-bundle
Short Description Filter manager bundle for product lists
License MIT
Homepage http://ongr.io
Informations about the package filter-manager-bundle
ONGR FilterManagerBundle
Filter manager is used for listing documents. It provides ties between commonly used filtering options and UI elements with Elasticsearch repositories. It is important to mention that filtering is everything what has impact on list, it can be:
- Filtering on specific field value object have (color, country etc.)
- Filtering range (price range, distance from point etc.)
- Documents list pagination. Paging changes representation of list, so it is considered to be filter and is treated like one.
- Documents list sorting. Same as paging - sorting is filter in this bundle.
- Any custom factor which has influence (not always directly visible) on result list. It can exclude, boost, modify some results, collect some metrics or any other action you can imagine.
If you need any help, stack overflow is the preffered and recommended way to ask ONGR support questions.
Documentation
For online documentation of the bundle click here. All docs pages are located in Resources/doc/
.
Installation
Step 1: Install FilterManager bundle
FilterManager bundle is installed using Composer.
Please note that filter manager requires Elasticsearch bundle, guide on how to install and configure it can be found here.
Step 2: Enable FilterManager bundle
Enable Filter Manager bundle in your AppKernel:
Step 3: Add configuration for manager
Add minimal configuration for Elasticsearch and FilterManager bundles.
Note that
Product
document has to be defined. More about that in ElasticsearchBundle documentation.
In this particular example, we defined a single filter manager named search_list
to filter documents from product repository, and we will be using the filter named country
to filter on countries defined in document.
Step 4: Use your new bundle
FilterManagerBundle is ready to use. When you define filter manager the bundle generates a service according manager name. In this particular case it will be ongr_filter_manager.manager.search_list
.
To get a list grab the service and call handleRequest()
. Here's a short example in the controller:
More information how to use filters and render the results are in basics topic here.
Troubleshooting
If you face any issue or difficulty by implementing bundle, do not be afraid to create an issue with bug or question. Also ONGR organization has a tag in Stackoverflow so you can ask about all ONGR bundles also there.
License
This bundle is covered by the MIT license. Please see the complete license in the bundle LICENSE file.
All versions of filter-manager-bundle with dependencies
ongr/elasticsearch-bundle Version ^6.0|^7.0|dev-master
jms/serializer-bundle Version ^2.4|^3.0
symfony/twig-bundle Version ^3.4|^4.0|^5.0|^6.0
symfony/translation Version ^3.4|^4.0|^5.0|^6.0
symfony/asset Version ^3.4|^4.0|^5.0|^6.0
twig/twig Version ^2
symfony/browser-kit Version ^3.4|^4.0|^5.4|^6.0
symfony/css-selector Version ^3.4|^4.0|^5.0|^6.0