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…