PHPackages                             abderrahimghazali/sylius-workflow-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. [Mail &amp; Notifications](/categories/mail)
4. /
5. abderrahimghazali/sylius-workflow-plugin

ActiveSylius-plugin[Mail &amp; Notifications](/categories/mail)

abderrahimghazali/sylius-workflow-plugin
========================================

Visual marketing automation with node-based canvas for Sylius 2.x

v2.0.0(2mo ago)3320↓57.9%MITPHPPHP ^8.2CI passing

Since Mar 31Pushed 2mo agoCompare

[ Source](https://github.com/abderrahimghazali/sylius-workflow-plugin)[ Packagist](https://packagist.org/packages/abderrahimghazali/sylius-workflow-plugin)[ Docs](https://github.com/abderrahimghazali/sylius-workflow-plugin)[ RSS](/packages/abderrahimghazali-sylius-workflow-plugin/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

 [    ![Sylius Logo](https://camo.githubusercontent.com/ea9dddc934264aa7ec01cf3202c500f3d8b04448bce2571bdc74230efddda88f/68747470733a2f2f6d656469612e73796c6975732e636f6d2f73796c6975732d6c6f676f2d3830302e706e67)  ](https://sylius.com)

Sylius Workflow Plugin
======================

[](#sylius-workflow-plugin)

 Visual marketing automation engine with a node-based canvas editor for [Sylius 2.x](https://sylius.com) stores.

 [![CI](https://github.com/abderrahimghazali/sylius-workflow-plugin/actions/workflows/ci.yaml/badge.svg)](https://github.com/abderrahimghazali/sylius-workflow-plugin/actions/workflows/ci.yaml) [![Latest Version](https://camo.githubusercontent.com/42313a8948d344a7b08fdd5d473c38ad9d11e6d4c0c88f299794c8df96717cb5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6162646572726168696d6768617a616c692f73796c6975732d776f726b666c6f772d706c7567696e2e737667)](https://packagist.org/packages/abderrahimghazali/sylius-workflow-plugin) [![PHP Version](https://camo.githubusercontent.com/5b2d5a7287a320b14c78a8527a3b29dcef023f53641b0e36905eb909cfe197fa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6162646572726168696d6768617a616c692f73796c6975732d776f726b666c6f772d706c7567696e2e737667)](https://packagist.org/packages/abderrahimghazali/sylius-workflow-plugin) [![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE) [![Sylius 2.x](https://camo.githubusercontent.com/47390b9b61d6f22d062322df61d2d225ceaf33f7bb75b99592c7ba766049f3e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73796c6975732d322e782d677265656e2e737667)](https://packagist.org/packages/abderrahimghazali/sylius-workflow-plugin) [![Symfony 7.x](https://camo.githubusercontent.com/fe777aec93f146d83db2752ebd66562c8d4d1be48fa4a1477c51c0dbab74e381/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73796d666f6e792d372e782d626c61636b2e737667)](https://packagist.org/packages/abderrahimghazali/sylius-workflow-plugin) [![PHPStan Level 5](https://camo.githubusercontent.com/0729e562e10fac943b16dbb271b4af26488f779a33fc82cc3eef1e37a432c0b4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230352d627269676874677265656e2e737667)](https://camo.githubusercontent.com/0729e562e10fac943b16dbb271b4af26488f779a33fc82cc3eef1e37a432c0b4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230352d627269676874677265656e2e737667)

---

Screenshots
-----------

[](#screenshots)

### Canvas Editor — Visual Node-Based Workflow Builder

[](#canvas-editor--visual-node-based-workflow-builder)

[![Canvas Editor](docs/images/canvas-editor.png)](docs/images/canvas-editor.png)

### Workflow List — Admin Grid

[](#workflow-list--admin-grid)

[![Workflow List](docs/images/workflow-list.png)](docs/images/workflow-list.png)

### Run Detail — Execution Timeline

[](#run-detail--execution-timeline)

[![Run Detail](docs/images/run-detail.png)](docs/images/run-detail.png)

Features
--------

[](#features)

- **Visual workflow builder** — design automation flows on a drag-and-drop canvas, no code required
- **Branching logic** — condition nodes split into "Then" and "Otherwise" paths for different customer journeys
- **Automated emails** — send personalized emails triggered by order events, registrations, or cart abandonment
- **Coupon generation** — automatically create unique discount codes and deliver them to customers
- **Delayed actions** — schedule follow-ups hours or days after an event (e.g. review request 7 days after purchase)
- **Customer tagging** — segment customers automatically based on their behavior and order history
- **Webhook integration** — push data to external CRMs, analytics tools, or any API endpoint
- **8 ready-to-use templates** — install pre-built workflows in one click: abandoned cart recovery, welcome series, birthday coupon, win-back campaigns, and more
- **Test run mode** — preview the execution path against a real order or customer without sending anything
- **Execution log** — see exactly what happened in every workflow run, node by node, with timestamps
- **Multiple workflows per event** — run several workflows on the same trigger (e.g. 3 different flows on order completion)
- **Deduplication** — prevents the same workflow from firing twice for the same customer on the same day
- **Works with existing plugins** — integrates with [sylius-loyalty-plugin](https://github.com/abderrahimghazali/sylius-loyalty-plugin) for loyalty points, degrades gracefully if not installed

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

[](#requirements)

RequirementVersionPHP^8.2Sylius^2.1Symfony^7.0Node.js^20 (for building canvas assets)Installation
------------

[](#installation)

1. Require the plugin:

```
composer require abderrahimghazali/sylius-workflow-plugin
```

2. Register the bundle in `config/bundles.php` (if not auto-discovered):

```
return [
    // ...
    Abderrahim\SyliusWorkflowPlugin\SyliusWorkflowPlugin::class => ['all' => true],
];
```

3. Import routes — create `config/routes/sylius_workflow.yaml`:

```
sylius_workflow:
    resource: '@SyliusWorkflowPlugin/config/routes.yaml'
```

4. Generate and run the migration:

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

5. Build the React canvas assets:

```
cd vendor/abderrahimghazali/sylius-workflow-plugin
npm install --prefix assets
npx webpack --mode production
```

Then symlink the built file to your public directory:

```
bin/console assets:install public
```

Usage
-----

[](#usage)

### Creating a Workflow

[](#creating-a-workflow)

1. Navigate to **Marketing &gt; Automation Workflows** in the admin sidebar
2. Click **New workflow** — enter a name and description
3. You'll be redirected to the **canvas editor** with a default trigger node
4. Add nodes from the **+ Add Node** dropdown (Condition, Action, Delay)
5. Connect nodes by dragging from the **Then** handle to the entry handle
6. Configure each node by clicking it — the right panel shows type-specific fields
7. Click **Save** to validate and persist the graph
8. Toggle **Activate** when ready

### Installing a Template

[](#installing-a-template)

1. Go to **Marketing &gt; Automation Workflows**
2. Click **Browse Templates** (or navigate to `/admin/workflows/templates`)
3. Browse the 8 pre-built workflows by category
4. Click **Install Template** — creates a draft workflow you can customize before activating

### Test Run

[](#test-run)

1. Open any workflow in the canvas editor
2. Click **Test Run** in the toolbar
3. Select a subject type (Order or Customer) and enter an ID
4. The dry-run evaluates conditions for real but skips all actions
5. The canvas highlights the execution path: green = passed, amber = skipped

### Run Log

[](#run-log)

1. From the workflow list, click **View Runs** on any workflow
2. See all execution history with status badges (completed/failed/skipped/running)
3. Click **View Details** to see the node-by-node execution timeline

Node Reference
--------------

[](#node-reference)

### Trigger Events

[](#trigger-events)

EventDescription`order.completed`Fires when an order is completed`order.cancelled`Fires when an order is cancelled`order.shipped`Fires when an order is shipped`cart.abandoned`Fires when a cart is abandoned`customer.registered`Fires when a new customer registers`customer.birthday`Fires on a customer's birthday`loyalty.tier_upgraded`Fires when a loyalty tier is upgraded`payment.failed`Fires when a payment fails### Condition Rules

[](#condition-rules)

RuleOperatorsDescription`order_total`is, is\_not, gt, lt, gte, lteCompare order total (in cents)`customer_first_order`is, is\_notCheck if this is the customer's first order`customer_tag`is, is\_not, containsCheck customer tags`customer_country`is, is\_notCheck customer address country code`loyalty_tier`is, is\_notCheck loyalty tier name`workflow_run_count`is, is\_not, gt, lt, gte, lteHow many times this workflow ran for this customer### Action Types

[](#action-types)

ActionConfig FieldsDescription`send_email`template, subjectSend an email via Symfony Mailer`generate_coupon`promotion, discount, expires\_in\_daysCreate a Sylius promotion coupon`add_customer_tag`tagAdd a tag to the customer`remove_customer_tag`tagRemove a tag from the customer`add_loyalty_points`amount, reasonAward loyalty points (requires loyalty plugin)`send_webhook`url, methodSend an HTTP POST/PUT to an external URL`add_order_note`noteAppend a note to the orderBuilt-in Templates
------------------

[](#built-in-templates)

TemplateTriggerFlowAbandoned Cart Recoverycart.abandonedWait 1h &gt; Send emailPost-Purchase Revieworder.completedWait 7d &gt; First order? &gt; Send emailWin Back Inactivecart.abandonedGenerate coupon &gt; Send emailBirthday Couponcustomer.birthdayGenerate coupon &gt; Send emailLoyalty Tier Upgradeloyalty.tier\_upgradedSend email &gt; Add 50 pointsNew Customer Welcomecustomer.registeredWait 1h &gt; Send emailPost-Purchase Upsellorder.completedWait 3d &gt; First order? &gt; Send emailPayment Failed Recoverypayment.failedWait 2h &gt; Send emailIntegration
-----------

[](#integration)

### Loyalty Plugin

[](#loyalty-plugin)

If [`abderrahimghazali/sylius-loyalty-plugin`](https://github.com/abderrahimghazali/sylius-loyalty-plugin) is installed, the **Add Loyalty Points** action dispatches events to it. If not installed, the action logs a warning and skips gracefully.

### Upsell Plugin

[](#upsell-plugin)

The **Post-Purchase Upsell** template works independently but can be enhanced with [`abderrahimghazali/sylius-upsell-plugin`](https://github.com/abderrahimghazali/sylius-upsell-plugin) for product recommendation data.

Testing
-------

[](#testing)

```
# PHP tests
vendor/bin/phpunit

# Static analysis
vendor/bin/phpstan analyse

# Build JS assets
cd assets && npm install && cd .. && npx webpack --mode production
```

License
-------

[](#license)

MIT. See [LICENSE](LICENSE).

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance83

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

89d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e1be9cf8e271987c350c614aa618f0e68c7f7409634e51f8c8fe105490899b0f?d=identicon)[abderrahim.ghazali](/maintainers/abderrahim.ghazali)

---

Top Contributors

[![abderrahimghazali](https://avatars.githubusercontent.com/u/12643883?v=4)](https://github.com/abderrahimghazali "abderrahimghazali (88 commits)")

---

Tags

automationecommercemarketingphpreact-flowsyliussylius-pluginsymfonyworkflowautomationemailsyliusworkflowmarketingcanvassylius-pluginnode-based

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/abderrahimghazali-sylius-workflow-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/abderrahimghazali-sylius-workflow-plugin/health.svg)](https://phpackages.com/packages/abderrahimghazali-sylius-workflow-plugin)
```

###  Alternatives

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1155.2k](/packages/rcsofttech-audit-trail-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M712](/packages/sylius-sylius)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k16.8k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M521](/packages/shopware-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
