PHPackages                             synerise/sylius-integration-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. synerise/sylius-integration-plugin

ActiveSylius-plugin

synerise/sylius-integration-plugin
==================================

Plugin allowing straightforward integration of Synerise platform in Sylius application.

v1.2.1(3mo ago)045[1 PRs](https://github.com/Synerise/Sylius-Integration-Plugin/pulls)MITPHPPHP ^8.2CI passing

Since Sep 29Pushed 1mo ago6 watchersCompare

[ Source](https://github.com/Synerise/Sylius-Integration-Plugin)[ Packagist](https://packagist.org/packages/synerise/sylius-integration-plugin)[ RSS](/packages/synerise-sylius-integration-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (35)Versions (8)Used By (0)

Sylius Integration Plugin
=========================

[](#sylius-integration-plugin)

---

Official [Synerise](https://www.synerise.com) plugin allowing configurable integration of [Sylius](https://sylius.com) 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
------------

[](#requirements)

Plugin usage requires access to the Synerise platform. Visit the [company website](https://www.synerise.com) 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

[](#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
------------

[](#installation)

Plugin is available as a composer package. Its registration is handled with Symfony Flex recipe. To benefit from autoconfiguration, please make sure that flex is available in your setup.

### 1. Allow Symfony contrib recipes

[](#1-allow-symfony-contrib-recipes)

```
composer config extra.symfony.allow-contrib true
```

### 2. Include Synerise recipes repository

[](#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

[](#3-install-the-plugin-with-composer)

```
composer require synerise/sylius-integration-plugin
```

### 4. Run doctrine migrations

[](#4-run-doctrine-migrations)

```
bin/console doctrine:migrations:migrate
```

Remember to use `-e prod` option for production environment.

### 5. Build assets

[](#5-build-assets)

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

### 6. Clear the application cache

[](#6-clear-the-application-cache)

```
bin/console cache:clear
```

Installation without flex
-------------------------

[](#installation-without-flex)

Although autoconfiguration with flex is the recommended option, the plugin can also be registered manually.

### 1. Register bundle

[](#1-register-bundle)

Edit your bundles config file `config/bundles.php` and add plugin to the array:

```
