Skip to main content


Showing posts from June 19, 2017

Design Patterns PHP

DesignPatternsPHPThis is a collection of knowndesign patternsand 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 as I’m most familiar with this software).
I think the problem with patterns is that often people do know them but don’t know when to apply which. Patterns The patterns can be structured in roughly three different categories. Please click on the title of every pattern’s page for a full explanation of the pattern on Wikipedia. 1. Creational1.1. Abstract Factory1.2. Builder1.3. Factory Method1.4. Multiton1.5. Pool1.6. Prototype1.7. Simple Factory1.8. Singleton1.9. Static Factory2. Structural2.1. Adapter / Wrapper2.2. Bridge2.3. Composite2.4. Data Mapper2.5. Decorator2.6. Dependency Injection2.7. Facade2.8. Fluent Interface2.9. Flyweight2.10. Proxy2.11. Registry