Skip to content

Instantly share code, notes, and snippets.

@0kelvin0
0kelvin0 / solid_principles.php
Created May 5, 2025 08:29 — forked from kingbri90z/solid_principles.php
SOLID Principles Demo
/* S.O.L.I.D STANDS FOR:
When expanded the acronyms might seem complicated, but they are pretty simple to grasp.
S – Single-responsiblity principle
O – Open-closed principle
L – Liskov substitution principle
I – Interface segregation principle
D – Dependency Inversion Principle
Let’s look at each principle individually to understand why S.O.L.I.D can help make us better developers.