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

psr-discovery/event-dispatcher-implementations

Discovers installed PSR-14 event dispatcher implementations (Symfony, League, Yiisoft, etc.) at runtime and returns the first available instance. Ideal for libraries/SDKs to support PSR-14 without hard dependencies or user configuration.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • PHP Version Alignment: Justifies upgrading legacy Laravel/PHP projects to PHP 8.2+ to leverage modern features (e.g., named arguments, read-only properties) while maintaining compatibility with this package.
  • Dependency Modernization: Enables adoption of newer Laravel versions (e.g., 10.x+) that may require PHP 8.2+.
  • Security & Performance: Aligns with PSR standards (via PSR-Discovery) to reduce technical debt and improve maintainability.
  • Roadmap for Event-Driven Architecture: Facilitates scaling event-driven systems by ensuring compatibility with updated PSR-14 implementations.

When to Consider This Package

  • Adopt if:

    • Your Laravel app runs on PHP 8.2+ (or you’re upgrading soon).
    • You need PSR-14 event dispatchers (e.g., Symfony’s EventDispatcher, Laminas, or custom implementations) without reinventing the wheel.
    • Your team prioritizes standardized event handling for decoupled services/microservices.
    • You’re building/modernizing a system with high event throughput (e.g., real-time notifications, workflows).
  • Look Elsewhere if:

    • You’re stuck on PHP <8.2 (use v1.1.1 or downgrade; this is a hard requirement).
    • Your event system is simple (e.g., <10 event listeners) and doesn’t need PSR compliance.
    • You’re using non-PSR event dispatchers (e.g., Laravel’s native Events facade) and lack integration needs.
    • Your team lacks bandwidth for PHP version upgrades (assess cost vs. benefit).

How to Pitch It (Stakeholders)

For Executives: "This package lets us standardize event handling across our Laravel apps using PSR-14, reducing custom code and improving scalability. Upgrading to PHP 8.2 (a one-time effort) unlocks modern performance and security benefits while future-proofing our architecture for microservices. Minimal dev effort, high ROI for maintainability."

For Engineering: *"The event-dispatcher-implementations package (now PHP 8.2+) gives us:

  • Plug-and-play PSR-14 dispatchers (Symfony, Laminas, etc.) to replace homegrown solutions.
  • Zero boilerplate for event-driven workflows (e.g., payments, notifications).
  • Future compatibility with Laravel 10+ and PHP 8.2 features like attributes for events. Upgrade path: Test in staging, update composer.json, and leverage PHP 8.2’s performance gains."*
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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky