#PHP Design Patterns (Theory and examples)
###Singleton
Singleton pattern, is a very simple pattern. Purposed to provide only one instance of a class either to conserve memory, or to make use of the instance as global object.
###Factory
Factory pattern, is a good solution for creating agnostically classes with a common interface. It's use is for generalizing the object creation by providing a middle negotiator!