Skip to content

SOLID design principles using modern PHP with features such as Dependency Injection, Constructor property promotion, Named argument, Type hinting.

License

Notifications You must be signed in to change notification settings

LAMPEngineer/SOLID-PHP-8-4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

solid_principles_in_modern_php.png

SOLID Principles Using Modern PHP

SOLID is an acronym of five object oriented design principles by Robert C. Martin. These principles are essential guidelines for making code maintainable, scalable, loose coupling, flexible and stable.

The S.O.L.I.D. Acronym

  • Single Responsibility Principle (SRP)
  • Open-Closed Principle (OCP)
  • Liskov Substitution Principle (LSP)
  • Interface Segregation Principle (ISP)
  • Dependency Inversion Principle (DIP)

SOLID Principles & Real World Demo

  1. Single Responsibility Principle (SRP)

  2. Open-Closed Principle (OCP)

  3. Liskov Substitution Principle (LSP)

  4. Interface Segregation Principle (ISP)

  5. Dependency Inversion Principle (DIP)

Modern Features

  • Dependency Injection
  • Loose Coupling
  • High Cohesion
  • Match Expression
  • Method Injection
  • Constructor Property Promotion
  • Named Parameters
  • Type Hinting
  • Constructor Injection
  • Nullable Type
  • Constructor Properties
  • Flexible & Stable

About

SOLID design principles using modern PHP with features such as Dependency Injection, Constructor property promotion, Named argument, Type hinting.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages