PHP ADR Action Generator
Generates ADR-compliant Action classes and unit tests for PHP 8.4 HTTP endpoints.
This skill streamlines modern PHP backend development by automating the creation of single-responsibility HTTP handlers following the Action-Domain-Responder (ADR) pattern. Designed for PHP 8.4, it generates boilerplate for invokable Action classes, PSR-7 request/response handling, and corresponding PHPUnit test suites. It is particularly effective for teams implementing DDD, CQRS, or Hexagonal Architecture, ensuring a thin, decoupled presentation layer that strictly delegates business logic to domain services while maintaining high test coverage.
主要功能
0145 GitHub stars
02Automatically creates corresponding PHPUnit test suites with mocked dependencies.
03Provides templates for GET, POST, PUT, PATCH, and DELETE operations.
04Generates PSR-7 compliant HTTP Action classes with PHP 8.4 syntax.
05Supports ADR (Action-Domain-Responder) architectural pattern for clean APIs.
06Enforces single-responsibility principles via invokable classes.
使用场景
01Refactoring legacy MVC controllers into decoupled, testable ADR Actions.
02Ensuring architectural consistency across large-scale PHP microservices.
03Rapidly scaffolding RESTful API endpoints in modern PHP projects.