PHPackages                             gally/sylius-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. gally/sylius-plugin

ActiveSylius-plugin[Utility &amp; Helpers](/categories/utility)

gally/sylius-plugin
===================

Sylius connector for Gally

v2.2.1(6mo ago)54.5k↑112.2%8[3 issues](https://github.com/Elastic-Suite/gally-sylius-connector/issues)OSL-3.0PHPPHP ^8.0

Since Feb 22Pushed 2w ago5 watchersCompare

[ Source](https://github.com/Elastic-Suite/gally-sylius-connector)[ Packagist](https://packagist.org/packages/gally/sylius-plugin)[ Docs](https://elasticsuite.io)[ RSS](/packages/gally-sylius-plugin/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (3)Dependencies (32)Versions (20)Used By (0)

Gally Plugin for Sylius
=======================

[](#gally-plugin-for-sylius)

Requirements
------------

[](#requirements)

- Gally version: 2.1.x
- Sylius version: 2.0.x

Usage
-----

[](#usage)

- Install the `gally/sylius-plugin` bundle
    - Run `composer require gally/sylius-plugin`
    - Add the bundle in `config/bundles.php`. You must put it after `SyliusGridBundle````
        [...]
        Gally\SyliusPlugin\GallySyliusPlugin::class => ['all' => true],
        ```
    - Import the Gally Sylius bundle configuration by adding the following lines to the imports section of `config/packages/_sylius.yaml````
        - { resource: "@GallySyliusPlugin/Resources/config/config.yml" }
        ```
    - Import admin routes by creating a file `config/routes/gally_admin.yaml````
        gally_admin:
            resource: "@GallySyliusPlugin/Resources/config/admin_routing.yml"
            prefix: /admin
        ```
    - Import shop routes by creating a file `config/routes/gally_shop.yaml````
        gally_shop:
            resource: "@GallySyliusPlugin/Resources/config/shop_routing.yml"
            prefix: /{_locale}
        ```
    - Implement the `Gally\SyliusPlugin\Model\GallyChannelInterface` and `Gally\SyliusPlugin\Model\GallyChannelTrait` in your Channel Entity `src/App/Entity/Channel/Channel.php`.

    ```
