max-stan / magento2-mercure
Magento 2 module for real-time publishing via Mercure protocol
Installs: 50
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
Type:magento2-module
pkg:composer/max-stan/magento2-mercure
Requires
- php: >=8.3
- lcobucci/jwt: ^4.0 || ^5.0
- magento/framework: *
- symfony/mercure: ^0.6 || ^1.0
This package is auto-updated.
Last update: 2026-02-28 15:33:46 UTC
README
Magento 2 module that integrates Symfony Mercure to enable real-time, server-sent event (SSE) publishing capabilities for your e-commerce store.
This module provides a Mercure Hub integration layer for Magento 2, enabling real-time server-sent events (SSE) across your storefront and admin panel. It handles JWT-based authentication for both publishing and subscribing, with separate secrets for each operation. Topics are managed through an extensible resolver system that supports both public (guest-accessible) and private (customer-specific) topic authorization.
Installation
To install Mercure in your Magento 2 project, follow these steps:
composer require max-stan/magento2-mercure bin/magento mod:en MaxStan_Mercure bin/magento setup:upgrade bin/magento setup:di:compile
Magento Compatibility
Can be installed on most 2.x Magento versions
Contributing
Contributions are welcome! If you find a bug or have a feature request, feel free to open an issue or submit a pull request.