Download the PHP package webgriffe/sylius-elasticsearch-plugin without Composer
On this page you can find all versions of the php package webgriffe/sylius-elasticsearch-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webgriffe/sylius-elasticsearch-plugin
More information about webgriffe/sylius-elasticsearch-plugin
Files in webgriffe/sylius-elasticsearch-plugin
Package sylius-elasticsearch-plugin
Short Description Plugin allowing to search products in Sylius.
License proprietary
Informations about the package sylius-elasticsearch-plugin
Sylius Elasticsearch Plugin
Sylius plugin for Elasticsearch query engine.
Installation
-
Run:
-
Add
Webgriffe\SyliusElasticsearchPlugin\WebgriffeSyliusElasticsearchPlugin::class => ['all' => true]
to yourconfig/bundles.php
.Normally, the plugin is automatically added to the
config/bundles.php
file by thecomposer require
command. If it is not, you have to add it manually. -
Import the plugin configs. Add the following to your config/packages/webgriffe_sylius_elasticsearch_plugin.yaml file:
-
Import the routes needed for cancelling the payments. Add the following to your config/routes.yaml file:
NB: if you have locales prefix enabled you should prefix import with that.
-
Make your ProductRepository implements the DocumentTypeRepositoryInterface. Remember to update your product resource configuration to use the new repository. For example:
- Make your ProductAttribute and ProductOption entities implements the FilterableInterface. You can implement it by using our ready DoctrineORMFilterableTrait. For example:
Usage
Contributing
For a comprehensive guide on Sylius Plugins development please go to Sylius documentation, there you will find the Plugin Development Guide, that is full of examples.
Quickstart Installation
Traditional
-
Run
composer create-project sylius/plugin-skeleton ProjectName
. - From the plugin skeleton root directory, run the following commands:
To be able to set up a plugin's database, remember to configure you database credentials in tests/Application/.env
and tests/Application/.env.test
.
Docker
-
Execute
docker compose up -d
-
Initialize plugin
docker compose exec app make init
- See your browser
open localhost
Usage
Running plugin tests
-
PHPUnit
-
PHPSpec
-
Behat (non-JS scenarios)
-
Behat (JS scenarios)
-
Start Headless Chrome:
-
Install SSL certificates (only once needed) and run test application's webserver on
127.0.0.1:8080
: - Run Behat:
-
Static Analysis
-
Psalm
- PHPStan
-
- Coding Standard
Opening Sylius with your plugin
-
Using
test
environment: - Using
dev
environment:
All versions of sylius-elasticsearch-plugin with dependencies
elasticsearch/elasticsearch Version ^7.17
sylius/sylius Version ^1.12 || ^1.13
symfony/webpack-encore-bundle Version ^1.15