title | updated | redirect_from | permalink |
---|---|---|---|
What are design patterns in PHP? |
August 19, 2016 |
/faq/object-oriented-programming/design-patterns/index/ |
/faq/object-oriented-programming/design-patterns/ |
Design patterns are recurring solutions to common problems in software designing.
It is recommend to acknowledge the following principles before starting with design patterns. Without the strict following of this principles design patterns (and OOP in general) makes no sense.
According to the Gang of Four book we can categorize design patterns into three main categories:
- Chain of responsibility
- Command
- Intepreter
- Iterator
- Mediator
- Memento
- Observer
- State
- Strategy
- Template method
- Visitor
Other design patterns that are important to know for complex applications:
- DesignPatternsPHP - sample code for several design patterns in PHP.
- Design Patterns eBook