PHP Clean Architecture & Hexagonal Patterns
Provides expert architectural guidance and PHP implementation patterns for Clean and Hexagonal Architecture.
This skill equips Claude with a comprehensive knowledge base for auditing and implementing Clean Architecture and Hexagonal (Ports & Adapters) patterns within PHP projects. It offers standardized checklists for Domain and Application layers, identifies common architectural violations like framework leakage into the core, and provides modern PHP 8.4 code examples for Use Cases, DTOs, and Port interfaces. It is an essential companion for developers aiming to maintain decoupled, testable, and highly maintainable codebases using DDD, CQRS, and SOLID principles.
主要功能
01Modern PHP 8.4 implementation patterns for Ports, Adapters, and Use Cases
02Reference library for DDD, CQRS, and Event Sourcing best practices
03Standardized checklists for Domain, Application, and Infrastructure layers
0445 GitHub stars
05Automated architectural audits to detect layer dependency violations
06Detection patterns for common anti-patterns like framework-in-core
使用场景
01Scaffolding new Domain Entities and Use Cases according to Clean Architecture rules
02Performing code reviews to ensure business logic remains framework-agnostic
03Refactoring monolithic PHP applications into a Hexagonal Architecture