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

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

Object pool design pattern in PHP, Learn design patterns

Object pool design pattern

This article with guide you through the object pool design pattern PHP, with theory explanation, and the practical example as well. Object Pool design pattern in PHP Object pool design pattern is a concept which essentially proposes the reuse of existing objects, instead of creating lots of new ones. It belongs to the category of … Read more