Design Patterns in PHP

Posted on

The Github repository domnikl/DesignPatternsPHP has a list of design patterns and their implementation in PHP.

It shows the UML diagram for the pattern and explains the purpose of the pattern.

AbstractFactory

To create series of related or dependent objects without specifying their concrete classes. Usually the created classes all implement the same interface. The client of the abstract factory does not care about how these objects are created, he just knows how they go together.

AbstractFactory

Some examples are the Composite, the FluentInterface, the Observer, the Repository or the famous Singleton anti-pattern.

https://github.com/domnikl/DesignPatternsPHP

Leave a Reply