# design-patterns-by-php **Repository Path**: Json159/design-patterns-by-php ## Basic Information - **Project Name**: design-patterns-by-php - **Description**: 《大话设计模式》php版本, https://design-patterns-by-php.hulin.ink - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2025-11-16 - **Last Updated**: 2025-11-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [《大话设计模式》](https://book.douban.com/subject/2334288/)php版本 用自己现在用的语言重新写一遍,文中的代码均可以在终端内执行 网页版本: https://design-patterns-by-php.hulin.ink 相关资源: [Design Patterns for Humans](https://github.com/kamranahmedse/design-patterns-for-humans) [DesignPatternsPHP](https://github.com/domnikl/DesignPatternsPHP) ## 目录 - [第一章 代码无错就是优 ---简单工厂模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter1.md) - [第二章 商场促销 --- 策略模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter2.md) - [第三章 拍摄UFO --- 单一职责原则](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter3.md) - [第四章 研求职两不误 --- 开放-封闭原则](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter4.md) - [第五章 会修电脑不会修收音机? --- 依赖倒转原则](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter5.md) - [第六章 穿什么有这么重要吗 --- 装饰模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter6.md) - [第七章 为别人做嫁衣 --- 代理模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter7.md) - [第八章 雷锋依然在人间 --- 工厂方法模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter8.md) - [第九章 简历复印 --- 原型模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter9.md) - [第十章 考题抄错会做也白搭 --- 模版方法模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter10.md) - [第十一章 无熟人难办事 --- 迪米特法则](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter11.md) - [第十二章 牛市股票还会亏钱 --- 外观模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter12.md) - [第十三章 好菜每回味不同 --- 建造者模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter13.md) - [第十四章 老板回来,我不知道 --- 观察者模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter14.md) - [第十五章 就不能不换DB吗? --- 抽象工厂模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter15.md) - [第十六章 无尽加班何时休 --- 状态模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter16.md) - [第十七章 在NBA我需要翻译 --- 适配器模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter17.md) - [第十八章 如果再回到从前 --- 备忘录模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter18.md) - [第十九章 分公司 = 一部分 --- 组合模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter19.md) - [第二十章 想走?可以!先买票 --- 迭代器模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter20.md) - [第二十一章 有些类也需要计划生育 --- 单例模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter21.md) - [第二十二章 手机软件何时统一 --- 桥接模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter22.md) - [第二十三章 烤羊肉串引来的思考 --- 命令模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter23.md) - [第二十四章 加薪非要老总批 --- 职责链模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter24.md) - [第二十五章 世界需要和平 --- 中介者模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter25.md) - [第二十六章 项目多也别傻做 --- 享元模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter26.md) - [第二十七章 其实你不懂老板的心 --- 解释器模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter27.md) - [第二十八章 男人和女人 --- 访问者模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter28.md) - [第二十九章 OOTV杯超级模式大赛 --- 模式总结](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter29.md) ## License The MIT License.