PHP Bridge Pattern Generator
Generates decoupled Bridge pattern components for PHP 8.4 to separate high-level abstractions from platform-specific implementations.
This skill automates the creation of the Bridge design pattern in PHP 8.4, allowing developers to evolve abstractions and implementations independently. It streamlines the generation of Abstractions, RefinedAbstractions, and Implementor interfaces within the Domain layer, while placing ConcreteImplementors in the Infrastructure layer, adhering to DDD and Clean Architecture principles. By providing ready-to-use templates and unit tests, it prevents class explosion in complex systems such as notification engines, reporting tools, or database drivers.
Características Principales
01Follows DDD-compliant file placement across Domain and Infrastructure layers
02Includes automated unit tests for bridge behavior verification
0345 GitHub stars
04Generates PHP 8.4 readonly classes and interfaces
05Provides standardized naming conventions for architectural consistency
06Prevents class explosion by decoupling variation dimensions
Casos de Uso
01Decoupling notification types from multiple delivery channels like Email, SMS, or Push
02Creating platform-independent database drivers or payment gateway integrations
03Implementing multi-format report generators such as PDF, Excel, and CSV with different engines