Download the PHP package ics/search-bundle without Composer
On this page you can find all versions of the php package ics/search-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package search-bundle
Imperium Clan Software - Search Bundle
Unified search for symfony
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Applications that use Symfony Flex
Open a command console, enter your project directory and execute:
Applications that don't use Symfony Flex
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php
file of your project:
Configuration
Routing
Add this lines to config/routes.yaml
Usage
Integrate an entity to the global search
1- Implements Interface EntitySearchInterface
in your entity.
2- Implements Interface EntitySearchRepositoryInterface
in the entity repository
3- Define HTML Twig for the entity search result
Each result entity are in result
variable.
The user search word are in search
variable.
For help to highlight return a twig function are implemented to use this feature make search fields in function argument.
All versions of search-bundle with dependencies
symfony/framework-bundle Version ^5
symfony/dependency-injection Version ^5
symfony/routing Version ^5
symfony/form Version ^5
doctrine/orm Version ^2.8
twig/twig Version ^3.3