Section: Php

Laravel Naming Conventions

October 23, 2022 · 4 min read
How to name your methods, variables, classes and more in Laravel

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 Decorator Design Pattern in PHP (with easy to follow example)

November 11, 2021 · 5 min read
The decorator pattern explained

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.

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.

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.

Why You Should Use SPL Exceptions in PHP, for Better Exception Handling

September 3, 2021 · 5 min read
Why you should start using the built in SPL exceptions, and not just throwing around the plain old Exception()

PHP Template Method Pattern

August 9, 2021 · 6 min read
A simple to understand introduction to the popular template method pattern.

Laravel features you may not know about

January 23, 2021 · 30 min read
Here is a collection of Laravel tips and tricks that you may or may not be aware of.