PHP CQRS & Event Sourcing Auditor
Audits PHP codebases for strict CQRS and Event Sourcing alignment to ensure architectural integrity and data consistency.
This skill provides a specialized architectural audit for PHP projects implementing Command Query Responsibility Segregation (CQRS) and Event Sourcing. It helps developers maintain a clean separation between write and read models, ensures projections are idempotent for safe event replays, and validates event store integrity through optimistic locking checks. By identifying common antipatterns—such as commands returning data, queries with side effects, or missing event metadata—it ensures your system remains robust, scalable, and fully aligned with domain-driven design principles.
主な機能
01Detects Command-Query Separation (CQS) violations in handlers
02Verifies optimistic locking implementation in event stores
0345 GitHub stars
04Validates event metadata including versions and timestamps
05Identifies non-idempotent projections to prevent data duplication
06Flags side effects and write operations within read-only queries
ユースケース
01Ensuring event replay safety before deploying new read-model projections
02Refactoring legacy monoliths into clean CQRS/ES architectures
03Automating architectural code reviews for PHP microservices