Design patterns: Visitor
The Visitor pattern with PHP examples
Architecture, design patterns, best practices and tools for writing better software, with a particular eye on how AI is becoming part of developers’ everyday work.
The Visitor pattern with PHP examples
The Template Method pattern with PHP examples
The Strategy pattern with PHP examples
The State pattern explained: what it is for, its benefits and a PHP example with a coffee machine that changes behavior depending on its state (no coin, has coin, dispensing).
The Observer pattern with PHP examples
The Memento pattern with PHP examples
The Iterator pattern with PHP examples
The Mediator pattern with PHP examples
The Command pattern with examples in PHP
The Chain of Responsibility pattern explained: what it is for, its benefits and a PHP example with a three-level support chain: basic, advanced and administrator.
The Proxy design pattern with PHP examples
The Facade pattern explained: what it is for, its benefits and a full PHP example, a single facade over a cinema’s movie catalog, ticket office and users.