Skip to content
B2B demo
Quick login
Demo accounts Plugins Architecture Technical proof
Demo menuFull demo menu
Professional supplies · Prices excl. VAT · Dedicated account manager
B2B demonstration e-shop Fictitious data, no order fulfilled, no real payment. Learn more

Plugin integration guide

A self-service technical guide for developers and integrators: prerequisites, typical plugin installation, typical architecture, questions to settle before starting and GitHub repositories. Each plugin has its own README, which is authoritative.

Prerequisites

  • Sylius 2.3 (2.2.9 at least for most plugins: earlier 2.2 versions are affected by cart and payment security advisories).
  • PHP 8.2 or later (8.3 or later with Sylius 2.3); the demo requires PHP 8.4 or later.
  • Symfony 6.4, 7.4 or 8.0 depending on the plugin; the demo runs on Symfony 8.1.
  • Composer, a database managed by Doctrine, and Node with yarn to rebuild the admin assets.

Typical plugin installation

Example with the quick order plugin. The others follow the same pattern; bundle, resource and table names change, and the plugin README gives the exact list.

  1. Require the package

    composer require tmonier/sylius-quick-order-plugin
  2. Register the bundle in config/bundles.php

    // config/bundles.php
    Tmonier\SyliusQuickOrderPlugin\TmonierSyliusQuickOrderPlugin::class => ['all' => true],
  3. Import the configuration in config/packages/tmonier_sylius_quick_order.yaml

    imports:
        - { resource: "@TmonierSyliusQuickOrderPlugin/config/config.yaml" }
  4. Import the routes in config/routes/tmonier_sylius_quick_order.yaml

    tmonier_sylius_quick_order:
        resource: "@TmonierSyliusQuickOrderPlugin/config/routes.yaml"
  5. Run the migrations

    bin/console doctrine:migrations:migrate

    The quick order plugin has no table, hence no migration. Most of the other plugins have some (PunchOut, price requests): run the command after reading it through.

  6. Install the assets, then clear the cache

    bin/console assets:install
    bin/console cache:clear

    Needed for the plugins that ship CSS or JavaScript to the admin panel or the shop (the command palette, for example). Then rebuild the application assets (yarn install && yarn build).

Adapt a plugin without modifying it: the override guide, with real examples from the demo.

Several plugins at once: the Install a pack page, with the command and the remaining steps of each pack.

Electronic invoicing: the page of the fictitious demonstration platform, with its simulated status scenarios.

Exchange with an ERP: the page of the flat file of orders, with its contract and an excerpt produced from the orders of the demo.

Questions to settle before starting

Which ERP, and which data must flow?

Must prices, stock, customers and orders be exchanged one way or both ways, and how often? The answer sets the architecture and a large part of the integration work.

Do buyers order from their procurement system?

PunchOut cXML or OCI: which platforms, which buyers, which information to carry into the order? A test account at the buyer makes acceptance testing easier.

What are the e-invoicing obligations?

Which invoice format (Factur-X, for example), which transmission platform, which deadline for the company? The demo produces Factur-X invoices; the choice of the transmission platform is still to be made.

What is the volume?

Number of references, customer companies and users, orders per day, catalogue import: these figures size the hosting and the load tests.

Typical architecture

The plugins are added to the Sylius shop. Exchanges with the outside go through standard interfaces.

Typical architecture diagram The Sylius 2 shop with its B2B plugins receives the carts of the buyers' procurement platforms (PunchOut cXML or OCI) and the requests of AI assistants (MCP). It exchanges catalogues, prices, stock and orders with the ERP, and produces Factur-X invoices for e-invoicing. Procurement platforms (PunchOut) AI assistants (MCP) Sylius 2 shop + B2B plugins ERP E-invoicing
Inputs: PunchOut cXML or OCI and AI assistants (MCP). ERP exchanges: catalogue, prices, stock, orders. Output: Factur-X invoices.

The demo itself is described on a page of its own: Architecture of the demo.

Integrations and their state

What the shop can connect to the outside and where each integration stands. A "not provided" integration has no plugin: the page says so and points to the event contract a developer can build on.

  • ERP Not provided

    Prices, stock, customers and orders exchanged with the company's management system.

    No plugin covers it. Event contract: Webhook Outbox

  • PIM Not provided

    Product data enriched in an external tool and brought into the catalogue.

    No plugin covers it. Event contract: Webhook Outbox

  • Carriers Available

    Logistics data per variant and container fill rules, the basis of a freight calculation.

    Plugin: Container Fill

  • E-invoicing, format Available

    Factur-X invoices: a readable PDF with structured data embedded.

    Plugin: Factur-X

  • E-invoicing, transmission platform Not provided

    Filing invoices with an accredited platform (PA or PDP).

    No plugin covers it. Event contract: Webhook Outbox

  • Purchasing portals Available

    Opening the shop from the buyer's procurement system, returning the cart as cXML or OCI.

    Plugin: PunchOut cXML

  • Large accounts Available

    Customer companies, users, roles, addresses and spending limits.

    Plugin: Company Accounts

  • AI assistants Available

    B2B tools exposed by the MCP server: list orders, order by reference.

    Plugin: B2B MCP

  • Customer equipment fleet Available

    Spare parts compatible with the machines a customer declares.

    Plugin: Customer Asset Management

Repositories and READMEs

Each plugin is an independent GitHub repository, with its README (installation, configuration, tests) and its Composer package.