OOP
Facade pattern in PHP
We practice the Facade pattern in PHP using a home automation example to simplify complex subsystem interactions into a single, clean interface
Composite pattern in PHP
We practice the Composite pattern in PHP using a file system structure with directories and files as components
Bridge pattern for notifications in PHP
We practice the Bridge pattern in PHP to separate notification types from delivery channels, avoiding class explosion when adding new features
Decorator pattern with pizzas
We practice the Decorator pattern in a pizzeria to add ingredients dynamically, without creating a class for each possible combination
PHP Adapter Design Pattern
A clear guide to the Adapter pattern in PHP, showing how to add new features by adapting external library code without modifying the library itself
A PHP app to practice design patterns
I share how I built a PHP app to practice design patterns using AI