Download the PHP package max-stan/magento2-mercure without Composer
On this page you can find all versions of the php package max-stan/magento2-mercure. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package magento2-mercure
📦 Magento 2 Mercure
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.
[!WARNING] This package is currently in alpha (
0.1.0-alpha1). The API is unstable and may introduce breaking changes between releases. Do not use in production.
⭐ Features
- SharedWorker SSE — Single connection shared across browser tabs with automatic reconnection
- JWT Authentication — Separate publisher/subscriber token generation with configurable secrets, algorithms (HMAC SHA-256/384/512), and TTL
- Topic-based authorization — Third-party modules have an ability to register their own topics. Public and private topic separation with user-scoped access control
🛠️ Installation
To install Mercure in your Magento 2 project, follow these steps:
🔁 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.
All versions of magento2-mercure with dependencies
magento/framework Version *
symfony/mercure Version ^0.6 || ^1.0
lcobucci/jwt Version ^4.0 || ^5.0