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 Contracts Laravel Package

symfony/event-dispatcher-contracts

Interfaces and base abstractions for Symfony’s event dispatching system. Use these contracts to standardize how events and listeners interact, and to build libraries compatible with Symfony components and their proven implementations.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit: The package provides PSR-14-compliant event dispatcher interfaces, making it ideal for cross-framework libraries or applications requiring interoperability. However, Laravel's native event system is not PSR-14-compliant, creating a misalignment for pure Laravel projects. Best suited for scenarios where decoupling from framework-specific implementations is critical (e.g., shared libraries used across Symfony/Laravel/other ecosystems).

Integration feasibility: Low for vanilla Laravel apps without a bridge. Requires implementing the PSR-14 interfaces or adopting a third-party adapter (e.g., laravel-psr-event-dispatcher). The "Dependents: 0" metric suggests limited adoption outside Symfony's ecosystem, indicating potential gaps in Laravel-specific tooling.

Technical risk: Low for the contracts themselves (pure interfaces), but high if building/maintaining a custom bridge. Potential inconsistency if multiple incompatible implementations exist. PHP 8.1+ requirement aligns with Laravel 10+, but PSR-14 adoption in Laravel remains unofficial.

Key questions:

  • Does the project require framework-agnostic event handling, or is Laravel's native system sufficient?
  • Are there existing PSR-14 bridges for Laravel (e.g., community packages)?
  • How would migration impact existing event listeners and middleware?

Integration Approach

Stack fit: Not a direct fit for Laravel's monolithic event system. Best for new projects where interoperability is a

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