Design Patterns in PHP: The Factory Pattern

I'm going to be writing a series of articles that cover different design patterns in PHP. To kick off this series, we're going to start with the Factory Pattern. To begin the series though, I want to discuss what a design pattern is and why they're helpful. Design patterns happen…

Dependency Inversion Principle

In the last article we learned about the Interface Segregation Principle. In this article we will be going over the Dependency Inversion Principle. The Dependency Inversion Principle, is the fifth SOLID Principle for OOP. For those new to SOLID, S.O.L.I.D Stands for: Single Responsibility Principle Open…

Interface Segregation Principle

In the previous article we learned about the Liskov Substitution Principle. In this Article we will be covering the Interface Segregation Principle. The Interface Segregation Principle, is the fourth SOLID Principle for OOP. For those new to SOLID, S.O.L.I.D Stands for: Single Responsibility Principle Open Closed…

Liskov Substitution Principle

In our last article we learned about the Open Close Principle. In this article we're going to talk about the Liskov Substitution Principle. The Liskov Substitution Principle, is the third SOLID Principle for OOP. For those new to SOLID, S.O.L.I.D Stands for: Single Responsibility Principle Open…

Open Closed Principle

Continuing from where we left off in the Single Responsibility Principle Article, we'll be discussing the open closed principle using the same code examples to make further improvements. The Open Closed Principle, is the second SOLID Principle for OOP. For those new to SOLID, S.O.L.I.D Stands…

Single Responsibility Principle

About a year ago I was asked to do a talk covering the SOLID principles of Object Oriented Programming (OOP) at my local Laravel Meetup. We recently had another meetup after a 9 month hiatus, and there were several new members who showed some interest in the topic. So I…