Download the PHP package monsieurbiz/sylius-search-plugin without Composer
On this page you can find all versions of the php package monsieurbiz/sylius-search-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download monsieurbiz/sylius-search-plugin
More information about monsieurbiz/sylius-search-plugin
Files in monsieurbiz/sylius-search-plugin
Package sylius-search-plugin
Short Description A search plugin using Elasticsearch for Sylius.
License MIT
Informations about the package sylius-search-plugin
Search
A search plugin for Sylius using Elastically and Jane.
Compatibility
Sylius Version | PHP Version |
---|---|
1.11 | 8.0 - 8.1 |
1.12 | 8.1 - 8.2 |
1.13 | 8.1 - 8.2 |
Installation
If you want to use our recipes, you can configure your composer.json by running:
This is the last version using jane-php/automapper
, which requires nikic/php-parser="^4.0"
.
The next version will use jolicode/automapper
, which is compatible with nikic/php-parser="^5.0"
.
If you are using Symfony Flex, the recipe will automatically do some actions.
For the installation without flex, follow these additional steps
Change your `config/bundles.php` file to add this line for the plugin declaration: Create the config file in `config/packages/monsieurbiz_sylius_search_plugin.yaml`: Create the route config file in `config/routes/monsieurbiz_sylius_search_plugin.yaml`: Copy the override templates: Finally configure plugin in your .env file by adding these lines at the end :
-
Install Elasticsearch 💪. See Infrastructure below.
-
Your
ProductAttribute
andProductOption
entities need to implement theMonsieurBiz\SyliusSearchPlugin\Entity\Product\SearchableInterface
interface and use theMonsieurBiz\SyliusSearchPlugin\Model\Product\SearchableTrait
trait. Example with theProductAttribute
: -
You need to run a diff of your doctrine's migrations:
console doctrine:migrations:diff
. Don't forget to run it! (console doctrine:migrations:migrate
) - Run the populate command.
Documentation
Documentation is available in the docs folder.
Infrastructure
The plugin was developed for Elasticsearch 7.16.x versions. You need to have analysis-icu and analysis-phonetic elasticsearch plugin installed.
Other information
Jane
We are using Jane to create a DTO (Data-transfer object).
Generated classes are on generated
folder.
Jane configuration and JSON Schema are on src/Resources/config/jane
folder.
To rebuild generated class during plugin development, we are using :
Elastically
The Elastically Client is configured in src/Resources/config/services.yaml
file.
You can customize it in your .env
file or if you want in config/services.yaml
.
Analyzers and YAML mappings are on src/Resources/config/elasticsearch
folder.
All versions of sylius-search-plugin with dependencies
jacquesbh/eater Version ^2.0
jane-php/automapper-bundle Version ^7.1
jolicode/elastically Version ^1.4.0
monsieurbiz/sylius-settings-plugin Version ^1.2
php Version ^8.0
sylius/sylius Version >=1.11 <1.14
symfony/messenger Version ^4.4 || ^5.2 || ^6.0