Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Mercure Notifier Laravel Package

symfony/mercure-notifier

Symfony Mercure Notifier bridge integrates Mercure with the Symfony Notifier component, enabling real-time push notifications through a Mercure hub. Configure a Mercure transport to deliver notifier messages to browsers and clients.

Deep Wiki
Context7

Technical Evaluation

  • Architecture fit: This is a Symfony Notifier bridge, not a Laravel package. It does not integrate with Laravel’s Notifiable/Notification channel system, so it will not “just work” in a Laravel app. It only fits cleanly if the application already uses Symfony Notifier, which is uncommon in Laravel. Mercure itself is a reasonable fit for real-time SSE notifications, but this package is a thin publisher bridge rather than a Laravel-native solution.
  • Integration feasibility: Technically possible via Composer, but requires pulling in symfony/notifier, notifier contracts, transport factories, and Mercure hub configuration. Laravel’s container can instantiate the services, but configuration, discovery, and DX are not Laravel-native. Expect a custom service provider, config file, and likely a wrapper channel. Feasibility is medium-low for direct use and medium for use as a reference implementation.
  • Technical risk: Low adoption (16 stars), unknown repository, and a future/inconsistent last-release date (2026-10-15) are warning signs. The package surface is small and MIT-licensed, so it is forkable, but maintenance risk is real. Symfony major-version lag, dependency conflicts with Laravel’s pinned Symfony components, and lack of Laravel-specific support are the main risks.
  • Key questions: Which Symfony Notifier versions are supported? Is it compatible with the Laravel and PHP versions in use? Does it support JWT/cookie authentication and private updates? Can it be used outside a full Symfony framework app? Is the release date accurate? Does it handle hub failures, retries, or queuing? Is there a better-supported Laravel Mercure broadcaster alternative?

Integration Approach

  • Stack fit: Poor as a direct dependency in a Laravel codebase. Better treated as a reference for Mercure publishing logic or wrapped behind an internal adapter. If Mercure is already integrated through Laravel broadcasting, use that path instead.
  • Migration path: Run a narrow proof of concept: install symfony/notifier plus this bridge, configure a Mercure hub, and send one notification from a Laravel command. Compare against Laravel’s native broadcaster plus a Mercure broadcaster. If the PoC passes, wrap the bridge in a Laravel notification channel that delegates to Symfony Notifier. If it fails or feels fragile, extract the small publish logic into an internal Mercure client.
  • Compatibility: Verify PHP 8.1+, Symfony 6/7, Laravel 10/11/12, HTTP client versions, and Mercure hub version. Check Composer constraints for conflicts with Laravel’s existing Symfony packages. Confirm whether the bridge requires framework-bundle services or can be wired manually.
  • Sequencing: 1) Confirm Mercure hub availability, TLS, and auth model. 2) Spike the package in an isolated branch. 3) Build a Laravel service provider and config wrapper. 4) Add queueing, retry, and failure logging around the send path. 5) Load-test SSE connections and publish throughput. 6) Decide whether to keep the bridge, fork it, or replace it with a direct Mercure client.

Operational Impact

  • Maintenance: The package is thin, so ongoing code maintenance is low, but low community adoption means the team may end up owning a fork. Pin versions and monitor Symfony Notifier releases and Mercure protocol changes.
  • Support: Community-only, no vendor SLA. With 16 stars, issue response and long-term maintenance are uncertain. Assign an internal owner and keep a fallback implementation plan.
  • Scaling: Scaling is mostly a Mercure hub concern, not a package concern. The bridge is a stateless publisher. Watch hub CPU/memory, SSE connection limits, JWT/auth overhead, and the hub’s transport backing (e.g., Redis). The package itself will not be the bottleneck.
  • Failure modes: Hub unavailable causes send failures; JWT/auth misconfiguration causes 401s; private-update topic mismatches cause silent non-delivery; Mercure is fire-and-forget, so there is no built-in delivery guarantee or retry unless wrapped; Symfony/Laravel dependency conflicts can block upgrades; package abandonment is a long-term risk.
  • Ramp-up: Low for basic Mercure publishing, medium for Symfony Notifier concepts inside Laravel, and medium for production concerns such as JWT auth, SSE limits, queueing, and observability. Budget roughly 1–2 days for a spike and 3–5 days for a production-grade wrapper with tests and failure handling.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
takashato/laravel-vietqr
aitor24/laralang
kraenzle-ritter/entity-relations
dindigital/din-image
pomirleanu/image-colors
sawmainek/laravel-api-generator
delatbabel/jsonresponses
mouhamedfd/permissions-generator
eduplus/qr
laravel2580/idehelpers
delatbabel/viewpages
anavel/gettext
muhamadrezaar/highcharts
delatbabel/keylists
frankkessler/salesforce-laravel-oauth2-rest
anavel/foundation
wdmtech/enviricons
eii/laravel-captcha
muka/shape-reader
tdt/json