PSR-14 Event Dispatcher Generator

•
45
•

Generates production-ready PHP 8.4 PSR-14 compliant event dispatcher systems for decoupling application logic and domain events.

This skill automates the creation of a standard-compliant event dispatching system in PHP, essential for implementing Event-Driven Architecture, Domain-Driven Design (DDD), and CQRS. It generates the necessary EventDispatcher, ListenerProvider, and StoppableEvent abstractions along with comprehensive PHPUnit tests, ensuring that your application components remain loosely coupled and easily extensible. By leveraging PHP 8.4 features like readonly classes and union types, it provides a modern, high-performance foundation for any complex PHP backend service.

Características Principales

01Full PSR-14 standard compliant implementation
02Automated generation of robust PHPUnit unit test suites
0345 GitHub stars
04Optimized for PHP 8.4 using readonly classes and strict typing
05Advanced listener provider supporting class, interface, and parent inheritance
06Built-in support for stoppable events and propagation control

Casos de Uso

01Decoupling domain logic from infrastructure concerns like email notifications or logging
02Implementing Domain-Driven Design (DDD) by dispatching events from aggregates
03Building extensible modular systems where plugins react to core application events