PHP CQRS Query Generator

•
45
•

Automates the creation of immutable CQRS queries, handlers, and DTOs for PHP 8.4 applications.

This skill streamlines the implementation of the read-side in CQRS architectures by generating boilerplate-free PHP 8.4 code. It creates immutable query DTOs, dedicated handlers with no side effects, and read model interfaces to ensure a clean separation between command and query logic. By enforcing best practices like interrogative naming, mandatory pagination for list queries, and returning DTOs instead of domain entities, it helps developers build scalable, performant, and highly testable PHP backends within DDD and Hexagonal architectures.

Características Principales

01Includes scaffolded unit tests for all generated components
02Produces Read Model Interfaces for data access abstraction
03Generates PHP 8.4 immutable 'readonly' query classes
0445 GitHub stars
05Automates DTO and PaginatedResult structure generation
06Creates side-effect-free Query Handlers for clean data retrieval

Casos de Uso

01Decoupling domain entities from application response structures using DTOs
02Implementing high-performance read operations in a DDD-based PHP project
03Standardizing data retrieval and pagination patterns across a PHP codebase