synerise/sylius-integration-plugin

Plugin allowing straightforward integration of Synerise platform in Sylius application.


README

Official Synerise plugin allowing configurable integration of Sylius applications with the platform. Main features include tracking customer actions (e.g. cart and transaction events) as well as data synchronisation of customers, orders and product catalog. The Synerise platform provides a variety of tools for building well-targeted and AI powered omnichannel marketing campaigns for any store.

Requirements

Plugin usage requires access to the Synerise platform. Visit the company website to learn about the platform and its numerous features. There you can find useful resources, such as case studies and use cases, or request a demo presentation.

Technical requirements

Before integration, please make sure your application meets with the following requirements:

  • PHP 8.2+
  • Sylius 2.x
  • RabbitMQ (optional, but recommended as a message queues handler)

Installation

Plugin is available as a composer package. Its registration is handled with Symfony Flex recipe.

1. Allow Symfony contrib recipes

composer config extra.symfony.allow-contrib true

2. Include Synerise recipes repository

composer config --json --merge extra.symfony.endpoint '["https://api.github.com/repos/synerise/symfony-recipes/contents/index.json?ref=flex/main"]'

Alternatively, edit composer.json file of your application to include an endpoint of Synerise recipes repository:

    "extra": {
        "symfony": {
            "endpoint": [
                "https://api.github.com/repos/synerise/symfony-recipes/contents/index.json?ref=flex/main",
                "..."
            ]
        }
        "..."
    }

3. Install the plugin with composer

composer require synerise/sylius-integration-plugin

4. Run doctrine migrations

bin/console doctrine:migrations:migrate

Remember to use -e prod option for production environment.

5. Build assets

yarn encore dev # for development
yarn encore production # for production

6. Clear the application cache

bin/console cache:clear

Documentation

To learn how to properly configure the plugin, please head to our documentation page.

Support

In case of a bug, feature request or any trouble with the integration, visit our support page and fill in the proper form.