PHP DDD Repository Generator
Generates DDD-compliant Repository interfaces and PHP 8.4 infrastructure implementations for clean architecture.
This skill streamlines the creation of Domain-Driven Design (DDD) repositories in PHP 8.4 projects by enforcing a strict separation between domain interfaces and infrastructure implementations. It automates the generation of aggregate-root repositories, providing standardized stubs for Doctrine ORM, in-memory collections for unit testing, and integration tests. By following hexagonal architecture principles, it ensures your domain layer remains decoupled from persistence details, facilitating significantly better code maintainability and testability.
Key Features
0145 GitHub stars
02Generates PHP 8.4 readonly classes and strict typing
03Enforces Domain/Infrastructure layer separation
04Automates integration test scaffold generation
05Provides ready-to-use Doctrine ORM implementations
06Creates In-Memory repository stubs for unit testing
Use Cases
01Setting up mockable repository layers for fast-executing unit tests
02Scaffolding new aggregate roots in a PHP Hexagonal Architecture project
03Decoupling domain logic from Doctrine or Eloquent ORM dependencies