PHP Design Patterns:
A design pattern is like a template which guides us to solve a problem. Design patterns are not finished design that can be transformed directly into code. In Object Oriented based design patterns we can get the interactions and relationships between classes or objects.
It is not necessary that every software patterns are design patterns. Design patterns generally persists in the domain of modules.
Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides were introduced design patterns and this was foreword by Grady Booch.
There are almost 23 patterns present and these are based on different categories like Creation patterns, Structural patterns, and Behavioral patterns.
Now we will study five common design patterns in PHP 5:
PHP Factory Method
Recommend the tutorial