Hexagonal Architecture Guide for PHP
Audits and implements Hexagonal Architecture patterns in PHP projects to ensure clean separation of concerns and testability.
This skill provides a comprehensive knowledge base for implementing the Hexagonal Architecture (Ports & Adapters) pattern within PHP environments. It equips Claude with the ability to perform architectural audits, identify common violations like core-to-infrastructure dependencies, and generate boilerplate for Driving and Driven Ports and Adapters. By following these patterns, developers can successfully decouple business logic from framework-specific implementation details, making the codebase more maintainable, testable, and resilient to technology shifts.
主要功能
01Architectural audit checklists for Ports and Adapters
02PHP 8.4 code generation for Use Case interfaces and DTOs
03Guidance on decoupling domain logic from frameworks like Symfony and Laravel
0445 GitHub stars
05Detection of common architectural violations and anti-patterns
06Reference patterns for Repository and Controller implementations
使用场景
01Refactoring a monolithic PHP application into a clean, decoupled architecture
02Performing automated architectural reviews of existing PHP codebases to find leaks
03Generating boilerplate for new domain services following the Ports & Adapters pattern