Skip to content

Latest commit

 

History

History
70 lines (59 loc) · 3.9 KB

File metadata and controls

70 lines (59 loc) · 3.9 KB

Design Patterns in PHP with Real Examples

In this repo you can find all familiar design patterns that uses in most php frameworks.
Design patterns divided into three categories as below :

Creational

Structural

Behavioral

SOLID

  • Single Responsibility Principle
  • Open/Closed Principle
  • Liskov Substitution Principle
  • Interface Segregation Principle
  • Dependency Inversion Principle

Architecture Patterns

  • MVC(Model, View, Controll)
  • HMVC(Hierarchical Model, View, Controll)
  • MVVM(Model View ViewModel)
  • MVP(Model View Presenter)
  • SOA(Service Oriented Architecture)
  • PAC(Presentation Abstraction Control)
  • ECS(Entity Component System)
  • DDD(Domain Driven Design)
  • HA(Hexagonal architecture)
  • CQRS(Command Query Responsibility Segregation)
  • ES(Event Sourcing)

Others

  • Service Container
  • Service Layer
  • Service Providers
  • Annotations
  • Inversion of Control [Factory Method]
  • Constructor Injection
  • Dependency Injection