Sylius plugin to integrate Mailchimp: newsletter, abandoned carts, e-commerce sync
The SyliusMailchimpPlugin keeps a Sylius store's newsletter contacts, products, carts and orders in sync with Mailchimp: it creates/updates Mailchimp List Members from Sylius Customers, sets up a Mailchimp e-commerce Store per Channel, and syncs Products, abandoned Carts and completed Orders to it so you can run Mailchimp's abandoned-cart and e-commerce automations. It also exposes a synchronous newsletter subscribe endpoint and listens to Mailchimp webhooks to keep subscription status changes made on Mailchimp's side (e.g. manual unsubscribe) reflected in Sylius.
Sylius stores that want to run Mailchimp campaigns and automations (abandoned cart recovery, product recommendations, newsletter) using their real, live store data instead of manual list exports/imports.
See docs/installation.md.
Transactional data (products, carts, orders) is synced regardless of newsletter consent, as it's necessary to
run the store's e-commerce automations. Newsletter contact sync, on the other hand, is gated by the
customer's own newsletter subscription flag and you choose single vs. double opt-in via configuration.
Webgriffe does not take any responsibility for incorrect use of this integration or for not respecting the
wishes of the users of your e-commerce/website — see docs/usage.md
for the full picture.
Read the documentation: Requirements, Installation, Usage and Architecture.
-
Install dependencies and set up the test application:
composer install composer test-app-init
Set
MAILCHIMP_API_KEY(and any other variable referenced intests/TestApplication/.env.test) before running the test application or the test suites. -
Run your local server:
symfony server:ca:install symfony server:start -d
composer ecs # coding standard (add --fix to auto-fix)
composer phpstan
composer psalm
composer phpunit
composer phpspec
composer behat
composer suite # all of the aboveSee AGENTS.md for conventions and the full command reference, and
docs/ai/testing-guide.md for the in-depth testing guide.
See CONTRIBUTING.md.