PHP Event Store Generator
Generates robust Event Store infrastructure for PHP 8.4 applications using Event Sourcing and DDD patterns.
The create-event-store skill automates the creation of high-quality event sourcing storage for PHP 8.4, providing a standardized way to persist and replay domain events. It implements essential patterns like immutable stored events, ordered event streams, and optimistic locking to prevent concurrency conflicts. By generating both domain contracts and infrastructure implementations—including Doctrine DBAL integration and SQL migrations—it ensures your application maintains a reliable audit trail and supports complex temporal queries while adhering to Clean Architecture principles.
主要功能
01Provides Doctrine DBAL infrastructure implementation and SQL migrations
02Generates immutable StoredEvent and EventStream domain components
0345 GitHub stars
04Includes comprehensive unit and integration tests for all components
05Implements EventStoreInterface with version tracking and optimistic locking
06Follows PHP 8.4 standards and Clean Architecture best practices
使用场景
01Building audit trails for sensitive business operations where data provenance is critical
02Rebuilding projections or read models through event replay for CQRS architectures
03Implementing Event Sourcing to maintain a complete history of aggregate state changes