Monthly Archives: December 2019

Prototype design pattern, prototype pattern

Prototype design pattern is used when we want to create one object which can be used as a template (prototype) for creation of some other objects. Prototype pattern is one of the creational patterns (because it indicates a way of how we create objects). Creational patterns are: Factory pattern, Abstract factory pattern, Singleton pattern, Prototype…

Read More

Singleton design pattern in PHP, Learn design patterns

This article with guide you through the singleton pattern in PHP, with theory explanation, and the practical example as well. Singleton design pattern is one of the first design patterns that is explained in any design patterns book or tutorial. Singleton Design Pattern in PHP Nature wise, singleton pattern belongs to the category of creational…

Read More