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

Laravel Sse Laravel Package

sarfraznawaz2005/laravel-sse

A lightweight Laravel package for Server-Sent Events (SSE) that lets you stream real-time updates from your app to the browser without WebSockets, using a simple API for sending events and keeping connections alive.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Real-time UX without WebSocket infrastructure: laravel-sse enables one-way server push (Server-Sent Events) over plain HTTP, letting you ship live notifications, progress bars for long-running jobs, activity feeds, and dashboard counters without standing up or operating a WebSocket service (Pusher, Ably, Laravel Reverb/Redis). This is a meaningful scope reduction for teams without dedicated realtime ops.
  • Build vs buy: For unidirectional streaming (server → browser), this package can replace paid hosted realtime vendors and reduces reliance on managed pub/sub. If your product needs bidirectional or multi-user collaboration features (presence, typing indicators, shared cursors), the buy/WebSocket route still wins.
  • Roadmap sequencing: A cheap way to validate demand for "live" features before committing to a realtime platform investment. Ship SSE-backed v1, measure engagement, then migrate to WebSockets only if two-way interaction becomes a product requirement.
  • Operational leverage: SSE rides existing HTTP stack, load balancers, and auth middleware — fewer new failure modes, simpler security review, and no new vendor in the procurement/DPA cycle.
  • Key constraint for planning: SSE holds a long-lived HTTP connection per client. This affects PHP-FPM worker/process budgeting, proxy timeouts, and horizontal scaling on shared hosting. Product decisions about concurrency targets must be validated with engineering at expected peak user counts.

When to Consider This Package

Adopt when:

  • The feature is strictly one-way (server pushes updates; client only listens).
  • You're on a supported Laravel version — note that 3.0.0 raises the illuminate/support requirement to Laravel 12, so this major version is effectively Laravel 12+ only. Projects on Laravel 10/11 must stay on the 2.x line or plan an upgrade first.
  • Your infrastructure can hold concurrent open connections: no aggressive proxy/idle timeouts, and PHP worker capacity sized for simultaneous listeners.
  • Reconnect-and-resume semantics (browser EventSource auto-reconnect) are acceptable as your delivery guarantee — SSE is not a durable message queue; missed events during disconnection are lost unless you build replay/last-event-ID handling.
  • You want minimal new dependencies and no managed realtime vendor.

Look elsewhere when:

  • Bidirectional or peer-to-peer interaction is required — use Laravel Reverb, Soketi, or a hosted WebSocket provider.
  • You need guaranteed delivery, fan-out to large audiences, or per-user channel auth at scale — a pub/sub backbone (Redis + WebSockets) is the correct layer.
  • Your hosting is shared/managed PHP with strict process caps and no ability to tune timeouts.
  • You cannot move to Laravel 12 in the current cycle — 3.0.0's value is framework alignment, not new capability; the 2.x branch remains functionally equivalent for older apps.

How to Pitch It (Stakeholders)

For executives: This release is a maintenance-tier upgrade, not a feature release. The 3.0.0 change set is a single dependency-constraint update that aligns the package with Laravel 12. The major version number signals a support-matrix change — it drops compatibility with older Laravel versions — rather than new product capability. Net: low strategic impact, but it is a forcing function for our upgrade calendar: if we intend to use or keep using this package, we must be on Laravel 12. Treat it as a routine dependency-hygiene item bundled into the framework upgrade, with no separate business case required.

For engineering: Version 3.0.0 pins illuminate/support to Laravel 12 (PR #11, new contributor @Serveronet). Practical implications: (1) no API or behavioral changes — the migration surface is the Laravel upgrade itself, not the package; (2) confirm the 2.x constraint before bumping, and pin accordingly so non-upgraded services don't break; (3) verify our SSE endpoints survive the framework jump — middleware, response streaming, and long-connection handling are the likely friction points; (4) re-check proxy/idle timeouts and PHP worker sizing as part of the same upgrade window. This is a good moment to document our SSE concurrency assumptions while the change is fresh and low-risk.

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.
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table