PHP Domain Event Generator

•
45
•

Generates DDD-compliant, immutable Domain Events for PHP 8.4 with automated metadata and unit test generation.

This skill streamlines the implementation of Domain-Driven Design (DDD) by generating standardized, immutable Domain Events for PHP 8.4 applications. It ensures architectural consistency by enforcing past-tense naming, utilizing primitive types for seamless serialization, and including essential metadata such as causation and correlation IDs for better system traceability. By automating the creation of both the event class and its corresponding PHPUnit test suite, it helps developers maintain high-quality code in event-driven, hexagonal, or event-sourced architectures.

Características Principales

01Automates PHPUnit test generation with proper coverage attributes
02Generates PHP 8.4 'final readonly' immutable event classes
03Includes standardized metadata for causation and correlation tracking
0445 GitHub stars
05Enforces strict past-tense naming conventions for domain accuracy
06Uses primitive types to ensure easy serialization across services

Casos de Uso

01Accelerating boilerplate creation for Hexagonal and Clean Architecture projects
02Implementing Event Sourcing or CQRS patterns in a PHP backend
03Standardizing state-change documentation across different Bounded Contexts