OOP

  • 11 July 2026

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

Read more β†’
  • 29 June 2026

Composite pattern in PHP

We practice the Composite pattern in PHP using a file system structure with directories and files as components

Read more β†’
  • 07 June 2026

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

Read more β†’
  • 13 May 2026

Decorator pattern with pizzas

We practice the Decorator pattern in a pizzeria to add ingredients dynamically, without creating a class for each possible combination

Read more β†’
  • 07 May 2026

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

Read more β†’
  • 25 April 2026

A PHP app to practice design patterns

I share how I built a PHP app to practice design patterns using AI

Read more β†’