DesignPatternsPHP
  • 1. 创建型设计模式
  • 2. 结构型设计模式
  • 3. 行为型设计模式
  • 4. 更多
DesignPatternsPHP
  • DesignPatternsPHP
  • 查看页面源码

DesignPatternsPHP

Build Status Documentation Status

This is a collection of known design patterns and some sample code how to implement them in PHP. Every pattern has a small list of examples.

I think the problem with patterns is that often people do know them but don't know when to apply which.

Patterns

The patterns can be structured in roughly three different categories. Please click on the title of every pattern's page for a full explanation of the pattern on Wikipedia.

  • 1. 创建型设计模式
    • 1.1. 抽象工厂
    • 1.2. 生成器模式
    • 1.3. 工厂方法
    • 1.4. 对象池
    • 1.5. 原型模式
    • 1.6. 简单工厂
    • 1.7. 单例模式
    • 1.8. 静态工厂
  • 2. 结构型设计模式
    • 2.1. 适配器模式
    • 2.2. 桥接模式
    • 2.3. 组合模式
    • 2.4. 数据映射器
    • 2.5. 装饰器
    • 2.6. 依赖注入
    • 2.7. 外观模式
    • 2.8. 连贯接口
    • 2.9. Flyweight
    • 2.10. 代理模式
    • 2.11. 注册模式
  • 3. 行为型设计模式
    • 3.1. 责任链模式
    • 3.2. 命令行模式
    • 3.3. 解释器模式
    • 3.4. 迭代器模式
    • 3.5. 中介者模式
    • 3.6. 备忘录模式
    • 3.7. 空对象模式
    • 3.8. 观察者模式
    • 3.9. 规格模式
    • 3.10. 状态模式
    • 3.11. 策略模式
    • 3.12. 模板方法模式
    • 3.13. 访问者模式
  • 4. 更多
    • 4.1. 服务定位器
    • 4.2. 储存库
    • 4.3. 实体-属性-值 (EAV)
下一页

© 版权所有 2011-2020, Dominik Liebler and contributors。

利用 Sphinx 构建,使用的 主题 由 Read the Docs 开发.