Section: Php

Laravel Naming Conventions

May 9, 2020 · 4 min read
How to name your methods, variables, classes and more in Laravel

Laravel features you may not know about

November 23, 2019 · 29 min read
Here is a collection of Laravel tips and tricks that you may or may not be aware of.

The 5 Principes of SOLID, easily explained using PHP

November 13, 2019 · 6 min read
An explanation of the S.O.L.I.D. principles, and how to use them in your PHP scripts.

The Adapter Design Pattern, Explained With PHP

November 11, 2019 · 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.

PHP Observer Design Pattern Explained (Easy to understand)

November 11, 2019 · 4 min read
The Observer design pattern is very common, and luckily is a very easy concept to understand. Here it is explained!

The Decorator Design Pattern in PHP (with easy to follow example)

November 11, 2019 · 5 min read
The decorator pattern explained, with a full and easy to understand example (using PHP).

The Chain-of-responsibility programming design pattern (explained using PHP)

November 11, 2019 · 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.

Strategy Design Pattern in PHP - Explained!

November 11, 2019 · 3 min read
A simple to understand explanation and examples for the strategy design pattern (using PHP)

The Composite Design Pattern Explained (with PHP)

November 11, 2019 · 1 min read
A simple to understand description of the Composite design pattern, using PHP.

Specification Design Pattern in PHP - Explained!

October 20, 2019 · 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, 2019 · 4 min read
An easy to understand description of the Repository Pattern in PHP, including generic examples and examples specific to Laravel.

Array Destructuring: The Useful PHP 7 Feature You (maybe) Aren't Using

October 10, 2019 · 2 min read
Array Destructuring is a new feature from PHP 7.1 that can make code cleaner and a bit quicker to write. However it doesn't seem to be commonly used. Here is a guide on how to use it.

Laravel + SQLite - works in php artisan tinker, but gives 'unable to open db file' - FIXED

September 26, 2019 · 1 min read
How to fix (one cause of) 'General error: 14 unable to open database file'

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

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

Essential keyboard shortcuts you NEED to know when using PHP Storm

August 14, 2019 · 3 min read
The essential keyboard shortcuts that you need to be aware of when using PHPStorm

PHP Template Method Pattern Explained (its easy!)

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