# PHPDesignPattern **Repository Path**: forMay/PHPDesignPattern ## Basic Information - **Project Name**: PHPDesignPattern - **Description**: PHP 设计模式 学习 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-08 - **Last Updated**: 2024-04-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PHP设计模式 自我整理学习 来源B站 [别叫我郭大侠](https://space.bilibili.com/231456027) 之 [PHP设计模式 架构师](https://www.bilibili.com/video/BV1r7411j7Gc/?spm_id_from=333.999.0.0&vd_source=56bd8a297eca233cfbe1de3be0be638f) 本项目PHP版本 `7.4` ## 项目结构 [01Polymorphism.php(多态)](01Polymorphism.php) [02Factory(面向接口开放)](02Factory.php) [03Factory(简单工厂模式)](03Factory.php) [04Factory(工厂方法)](04Factory.php) [05Singleton(单例模式)](05Singleton.php) [06Observer(观察者模式)](06Observer.php) [P11chainOfResponsibility(责任链模式)](P11chainOfResponsibility.php) [P12Strategy(策略模式)](P12Strategy.php) [P13Decorator(装饰模式01)](P13Decorator.php) [P14Decorator(装饰模式02)](P14Decorator.php) [P15Adapter(适配器)](P15Adapter.php) [P16Bridging01(桥接模式01)](P16Bridging01.php) [P16Bridging02(桥接模式02)](P16Bridging02.php) ### 使用示例: ```shell # 项目根目录下运行 php .\01Polymorphism.php # 输出结果 XTiger 能跑10公里 MTiger 能跑20公里 XTiger 能跑10公里 ```