Registry / messaging / symfony-mercure-bundle

symfony-mercure-bundle

JSON →
library0.4.2phppackagistunverified

Symfony bundle for integrating Mercure, a real-time messaging protocol.

composer require symfony/mercure-bundle
INSTALL
IMPORT
SIG · SYMFONY-MERCURE-BU
S
symfony-mercure-bundle
messagingphpv0.4.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HubInterface
use Symfony\Component\Mercure\HubInterface;

Inject HubInterface to publish Mercure updates.

use Symfony\Component\Mercure\HubInterface; use Symfony\Component\Mercure\Update; class MyService { public function __construct(private HubInterface $hub) {} public function sendUpdate(): void { $update = new Update('topic', 'data'); $this->hub->publish($update); } }
Debug
Known issues
gotchaRequires a Mercure hub server (e.g., Mercure.rocks) to be running.
fix
Set up a Mercure hub and configure the bundle's DSN.
affects: >=0.4.0
Upgrade
Version history
0.4.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
37 hits · last 30 days
node
34
OpenAI (training)
1
Resources
symfony-mercure-bundle — pip install symfony-mercure-bundle · libregistry