PHP ADR Responder Generator
Generates PSR-compliant ADR Responder classes and unit tests for PHP 8.4 APIs.
This skill streamlines the development of the presentation layer in PHP applications by generating standardized Responder classes based on the Action-Domain-Responder (ADR) pattern. It ensures a clean separation of concerns by isolating HTTP response logic from domain services, automatically mapping domain results to appropriate HTTP status codes (200, 201, 204, 404, etc.) while maintaining full PSR-7 and PSR-17 compliance. It is an essential tool for developers building Clean Architecture or DDD-based APIs who want to maintain high code quality and test coverage with minimal boilerplate.
Características Principales
01Provides comprehensive PHPUnit test templates with pre-configured mock setups
02Generates PHP 8.4 readonly classes with constructor property promotion
03Supports multiple response patterns including JSON, Pagination, and No Content (204)
04Implements PSR-7 and PSR-17 interfaces for standardized HTTP messaging
05Automates domain-to-HTTP error mapping for common API scenarios
0645 GitHub stars
Casos de Uso
01Standardizing HTTP response formats and error handling across PHP microservices
02Refactoring legacy controller logic into a decoupled presentation layer
03Building RESTful APIs following the Action-Domain-Responder pattern