PHP Clean Architecture & DDD

•
165
•

Implements enterprise-grade Clean Architecture and Domain-Driven Design patterns in PHP 8.3+ and Symfony 7.x.

This skill empowers developers to build highly maintainable, testable, and framework-independent PHP applications by enforcing the principles of Clean Architecture and Hexagonal (Ports & Adapters) design. It provides structured guidance for organizing domain entities, value objects, and application use cases while ensuring that business logic remains decoupled from infrastructure concerns like Symfony or Doctrine. Whether refactoring legacy code or architecting new enterprise systems, this skill streamlines the implementation of DDD tactical patterns and CQRS within modern PHP environments to ensure long-term code quality and scalability.

主な機能

01165 GitHub stars
02Implementation patterns for immutable Value Objects and behavior-rich Entities using modern PHP 8.3 features.
03Hexagonal Architecture (Ports & Adapters) patterns to decouple core logic from external APIs and databases.
04Guidance for framework-agnostic business logic that remains testable without Symfony or Doctrine dependencies.
05Standardized directory structure for Clean Architecture layers: Domain, Application, Adapter, and Infrastructure.
06Command/Query Responsibility Segregation (CQRS) setup with dedicated Handlers, DTOs, and readonly Commands.

ユースケース

01Designing complex domain models using DDD tactical patterns like Aggregates, Value Objects, and Domain Events.
02Refactoring monolithic legacy PHP codebases into modular, testable, and modern architectures.
03Architecting scalable enterprise-level backends with Symfony 7.x and PHP 8.3.