SOLID Principle with Examples in PHP
5 min readMay 22, 2021
In Object-Oriented Programming (OOP), we rely on the concept of objects/classes where everything inside of it is an object. It’s kind of useful because it’s similar to the way we live where everything is an object. With the OOP paradigm, our codes will be much easier to maintain, understand, and tends to be reusable.
When working in OOP, we’ll usually follow the S.O.L.I.D principle. The principle…