PSR-11 Container Generator
Generates PSR-11 compliant dependency injection containers for PHP 8.4 with autowiring support and unit tests.
This skill automates the creation of standards-compliant PHP dependency injection containers, following the PSR-11 interface. It provides both simple service locator patterns and advanced autowiring capabilities using PHP 8.4 reflection. By generating production-ready infrastructure code, including custom exceptions and comprehensive PHPUnit tests, it helps developers implement robust Clean Architecture and SOLID principles without the overhead of heavy third-party frameworks. It is ideal for developers building lightweight microservices or modular libraries that require decoupled dependency management.
主な機能
01Automated PHPUnit test suite with attribute-based metadata
02Support for service factories, aliases, and direct registration
03Advanced reflection-based autowiring for PHP 8.4
04Standardized PSR-11 ContainerInterface implementation
05Custom PSR-11 exception hierarchy generation
0645 GitHub stars
ユースケース
01Implementing Clean Architecture patterns in legacy PHP applications
02Building lightweight PHP microservices or standalone libraries
03Creating specialized mock containers for complex integration testing