Skip to content

Repository files navigation

S.O.L.I.D. Principles with PHP

Code examples demonstrating the S.O.L.I.D. principles of object-oriented design.

Principles

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

Each principle has its own directory with annotated PHP examples.

Usage

git clone https://github.com/albertguedes/solid-principles-with-php.git
cd solid-principles-with-php
php <principle-folder>/example.php

Tech Stack

  • PHP (pure OOP)

License

MIT License - see LICENSE

About

A set of scripts to demonstrate the aplication of S.O.L.I.D. principles.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages