Skip to content

zhujp/wDesign

Repository files navigation

wDesign

PHP设计模式学习

创建型设计模式

  1. 抽象工厂(Abstract Factory)
  2. 生成器 (Builder)
  3. 工厂方法 (Factory Method)
  4. 原型 (Prototype)
  5. 单例 (Singleton)

结构型设计模式

  1. 适配器模式(Adapter)
  2. 桥接模式(Bridge)
  3. 组合模式(Composite)
  4. 装饰器模式(Decorator)
  5. 外观模式(Facade)
  6. 亨元模式(Flyweight)
  7. 代理模式(Proxy)

行为型设计模式

  1. 职责链模式 (Chain of Responsibility)
  2. 命令模式 (Command)
  3. 解释器模式 (Interpreter) (类设计模式)
  4. 迭代器模式 (Iterator)
  5. 中介者模式 (Mediator)
  6. 备忘录模式 (Memento)
  7. 观察者模式 (Observer)
  8. 状态模式 (State)
  9. 策略模式 (Strategy)
  10. 模版方法模式 (Template Method) (类设计模式)
  11. 访问者模式 (Visitor)

About

PHP设计模式学习

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages