PHP Snapshot Pattern Generator
Generates Snapshot pattern infrastructure for PHP 8.4 to optimize event sourcing aggregate rebuild performance.
This skill automates the creation of a comprehensive Snapshot architecture for PHP 8.4 event-sourced applications. It generates immutable snapshot value objects, persistence interfaces, configurable threshold strategies, and the application services needed to coordinate state capture. By saving aggregate state at specific intervals, it dramatically reduces the time and resources required to rebuild aggregates with long event histories, making it ideal for high-scale Domain-Driven Design (DDD) and Hexagonal systems where performance is critical.
Características Principales
01Automates SQL migration generation for snapshot database tables
02Includes configurable event threshold strategies for automatic state capture
03Generates immutable PHP 8.4 Snapshot value objects with serialization
04Produces a full suite of unit tests for domain and application layers
05Creates SnapshotStoreInterface with Doctrine DBAL infrastructure implementations
0645 GitHub stars
Casos de Uso
01Implementing scalable state persistence for complex DDD business logic
02Optimizing read-side performance in CQRS and Event Sourcing systems
03Accelerating aggregate reconstruction for aggregates with 100+ events