SOLID Principle with Examples in PHP

Cerwyn Cahyono
5 min readMay 22, 2021
Photo by Luca Bravo on Unsplash

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…

--

--

Cerwyn Cahyono

PHP/Backend Engineer at Undercurrent Capital Pte Ltd — Data Science Enthusiast