DesignPatternsPHP is a collection of known design patterns and some sample code how to implement them in PHP. Every pattern has a small list of examples (most of them from Zend Framework, Symfony2 or Doctrine2). The problem with patterns is that often people do know them but don’t know when to apply which. So using these samples you should get more familiar with using the right pattern at the right time.

The patterns are structured in three different categories : Creational, Structural, and Behavioral. The repository include so far samples of 36 design patterns. A great collection written by Dominik Liebler and contributors, and released under an MIT license.

Documentation of the DesignPatternsPHP are available, and could be downloaded as PDF/ePub.

LEAVE A REPLY

Please enter your comment!
Please enter your name here