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.
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:
Stack fit: Not a direct fit for Laravel's monolithic event system. Best for new projects where interoperability is a
How can I help you explore Laravel packages today?