Section: Php Design-patterns
The 5 Principles of SOLID
November 13, 2021 · 6 min read
An explanation of the S.O.L.I.D. principles, and how to use them in your PHP scripts.
PHP Observer Design Pattern
November 11, 2021 · 4 min read
The Observer design pattern is very common, and luckily is a very easy concept to understand.
The Adapter Design Pattern in PHP
November 11, 2021 · 3 min read
The adapter design pattern is an easy to understand design pattern. Here is a guide (using PHP to help) to explain it all.
The Decorator Design Pattern in PHP (with easy to follow example)
November 11, 2021 · 5 min read
The decorator pattern explained
Strategy Design Pattern in PHP
November 11, 2021 · 3 min read
A simple to understand explanation and examples for the strategy design pattern (using PHP)
The Chain-of-responsibility programming design pattern
November 11, 2021 · 4 min read
The Chain of Responsibility design pattern is gaining in popularity, since being part of the PSR-15 standard (HTTP Request Middleware). Here is a quick overview of it. It let's you chain actions, and often gives them the ability to stop the chain.
The Composite Design Pattern
November 11, 2021 · 1 min read
A simple to understand description of the Composite design pattern, using PHP.
The Front Controller Design Pattern (using PHP)
November 1, 2021 · 2 min read
The front controller is a simple to understand design pattern where you have a main controller that handles every request for a website. It is a commonly used design pattern for many MVC based web applications.
Specification Design Pattern in PHP
October 20, 2021 · 5 min read
An introduction and easy to understand explanation of the Specification pattern, described using PHP.
The Repository Pattern in PHP (and Laravel)
October 16, 2021 · 4 min read
An easy to understand description of the Repository Pattern in PHP, including generic examples and examples specific to Laravel.
PHP Template Method Pattern
August 9, 2021 · 6 min read
A simple to understand introduction to the popular template method pattern.
The Service Locator Design Pattern in PHP
July 1, 2021 · 1 min read
An easy to follow explanation of the Service Locator design pattern, in PHP.