Weave Code
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 Dispatcher Laravel Package

psr/event-dispatcher

PSR-14 interfaces for event dispatching in PHP. Defines standard contracts for dispatchers, listeners, and providers to enable interoperability between frameworks and libraries. Not an implementation—use a compatible PSR-14 dispatcher package.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables interoperability between Laravel and other frameworks (e.g., Symfony), reducing integration costs for third-party libraries and avoiding custom adapter code.
  • Supports "build vs buy" decisions by allowing teams to swap event dispatcher implementations (e.g., Symfony's dispatcher vs. custom) without refactoring core logic.
  • Future-proofs architecture by aligning with PHP-FIG standards, ensuring compatibility with evolving ecosystem tools and reducing vendor lock-in.
  • Facilitates microservices communication via consistent event contracts, critical for distributed systems where services may use different frameworks.

When to Consider This Package

  • Adopt when building reusable packages/middleware that must work across multiple PHP frameworks or integrate with PSR-14-compliant external services.
  • Use when planning long-term infrastructure flexibility (e.g., framework migration paths) or when third-party libraries explicitly require PSR-14 interfaces.
  • Consider when standardizing event handling across teams to enforce consistency in large-scale applications.
  • Avoid if your project is entirely contained within a single framework (e.g., pure Laravel app with no external PSR-14 dependencies) and native event patterns suffice. Also skip if you need advanced features beyond standard interfaces (e.g., specialized dispatching logic), as implementations vary.

How to Pitch It (Stakeholders)

  • Executives: "This PSR-14 standard reduces technical debt by ensuring our event system integrates seamlessly with industry tools and frameworks. It eliminates costly custom integrations with third-party services, saving time and resources while future-proofing our architecture against vendor lock-in."
  • Engineering: "By injecting PSR-14 interfaces instead of framework-specific classes, we decouple code from Laravel’s Event system, enabling zero-downtime swaps of event dispatchers (e.g., Symfony or custom) with zero code changes. Laravel already supports this natively—adopting it requires minimal effort and unlocks compatibility with 100+ open-source libraries."
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport