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

Event Source Laravel Package

funkyoz/event-source

A Laravel event sourcing package for persisting domain events, rebuilding aggregates, and projecting read models. It provides building blocks to model state changes as an append-only event stream with clean, framework-friendly APIs.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Real-time product surface area: Enables server-sent events (SSE) for live notifications, activity feeds, job/progress status, dashboards, and AI token streaming—one-way push over plain HTTP without WebSocket infrastructure.
  • Build vs. buy: 2.0.1 is evidence the package absorbs the genuinely hard plumbing (nested output buffers, Symfony EventStreamResponse parity, unflushable buffers) so the team doesn't hand-roll and maintain SSE edge cases.
  • Roadmap de-risking: The fix that events are no longer held back until the stream ends (previously triggered by output_buffering plus a framework/plugin ob_start()) directly unblocks "live" features in apps deployed behind buffering middleware or default PHP configs.
  • Reliability commitment: This is a patch release—stability hardening, not new scope. It supports a roadmap narrative of "streaming works in real hosting environments," and the CLI-preserves-buffers behavior keeps the test story intact.
  • Deployment compatibility: Reduces environment-specific surprises (hosting with output_buffering on, plugin-started buffers), lowering the operational risk of shipping streaming features broadly.

When to Consider This Package

  • You need one-way server→client streaming over HTTP in Laravel/PHP (SSE) rather than full-duplex messaging.
  • Your stack uses output buffering—output_buffering in php.ini, framework or plugin ob_start()—or you standardize on Symfony's EventStreamResponse; the 2.0.1 fixes target exactly these conditions.
  • You expect prompt event delivery, not end-of-stream batching (the core bug fixed here).
  • You want testability (CLI keeps buffers so tests can capture streams) alongside production robustness.
  • Look elsewhere if you need bidirectional or high-fan-out realtime (WebSockets, a managed pub/sub), are outside Laravel/PHP, or require guarantees this package doesn't document. Also treat unusual buffer setups (e.g., ob_start(null, 0, 0)) as explicitly unsupported—those buffers are now left alone rather than flushed.

How to Pitch It (Stakeholders)

For executives: This package lets us ship live, real-time experiences—notifications, progress updates, streaming responses—over standard HTTP, avoiding the cost and complexity of standing up WebSocket infrastructure. Release 2.0.1 is a stability patch: it fixes cases where live events could stall until a stream finished in common hosting configurations, meaning fewer environment-specific bugs and lower operational risk as we roll these features out.

For engineering: Adopt this as the SSE layer rather than building buffering/flush logic in-house. 2.0.1 hardens output-buffer handling to match Symfony's EventStreamResponse: buffers are flushed and closed at stream start in web contexts, CLI buffers are preserved for test capture, and unflushable buffers are now safely ignored instead of emitting ob_flush() notices on every event. Net effect: reliable, timely event delivery across varied deployment configs with less custom code to own.

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.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels