Design Pattern¶
A design pattern, or simply a pattern, is a general solution to a common problem. Design patterns also get a name, for easy reference.
Common design patterns in PHP:
Factory
Dependency injection
Decorator
Module
Iterators
This list is not exhaustive…
Design patterns are not dedicated to PHP, though most of them do apply to PHP.
See also The Catalog of PHP Examples, DesignPatternsPHP, Design Pattenrs (the book) and Boosting PHP Performance with Design Patterns: Real-World Examples.
Related : Best Practices, Observer Design Pattern, Singleton, Design Pattern Wrapper, Clean Architecture, Clean Code, Component, Registry, Facade, Proxy Class, Snapshot, Specification, Command, Decorator Pattern, God Object, KISS, Middleware Pattern, Observer Pattern