PHP

  • 06 September 2026

Fluent Interface Pattern in PHP.

We practice the Fluent Interface technique in PHP to write code that reads like natural language by chaining method calls.

Read more 
  • 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