/design-patterns-php-2

Examples of design patterns in PHP

Primary LanguagePHPMIT LicenseMIT

Design Patterns

This project is set of simple examples of usage of different design patterns in a real world scenarios. Each one have a short description and guideline:

Following patterns have so far been described:

Creational:

  1. Factory Method
  2. Abstract Factory
  3. Singleton
  4. Builder
  5. Prototype

Behavioral:

  1. Iterator
  2. Observer
  3. State
  4. Strategy
  5. Template Method
  6. Chain of Responsibility
  7. Visitor
  8. Command
  9. Null Object
  10. Specification

Structural:

  1. Adapter
  2. Decorator
  3. Proxy
  4. Dependency Injection
  5. Facade
  6. Composite
  7. Bridge
  8. Flyweight
  9. Fluent Interface