PHP Blog Posts

PHP Blog Posts

The Repository Pattern in PHP (and Laravel) Thumbnail image

The Repository Pattern in PHP (and Laravel)

An easy to understand description of the Repository Pattern in PHP, including generic examples and examples specific to Laravel.

Read more
Laravel Naming Conventions Thumbnail image

Laravel Naming Conventions

How to name your methods, variables, classes and more in Laravel

Read more
Strategy Design Pattern in PHP - Explained! Thumbnail image

Strategy Design Pattern in PHP - Explained!

A simple to understand explanation and examples for the strategy design pattern (using PHP)

Read more
Why You Should Use SPL Exceptions in PHP, for Better Exception Handling Thumbnail image

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

Why you should start using the built in SPL exceptions, and not just throwing around the plain old \Exception()

Read more
PHP Observer Design Pattern Explained (Easy to understand) Thumbnail image

PHP Observer Design Pattern Explained (Easy to understand)

The Observer design pattern is very common, and luckily is a very easy concept to understand. Here it is explained!

Read more
Essential keyboard shortcuts you NEED to know when using PHP Storm Thumbnail image

Essential keyboard shortcuts you NEED to know when using PHP Storm

The essential keyboard shortcuts that you need to be aware of when using PHPStorm

Read more
PHP Template Method Pattern Explained (its easy!) Thumbnail image

PHP Template Method Pattern Explained (its easy!)

A simple to understand introduction to the popular template method pattern.

Read more
The Decorator Design Pattern in PHP (with easy to follow example) Thumbnail image

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

The decorator pattern explained, with a full and easy to understand example (using PHP).

Read more
The Adapter Design Pattern, Explained With PHP Thumbnail image

The Adapter Design Pattern, Explained With PHP

The adapter design pattern is an easy to understand design pattern. Here is a guide (using PHP to help) to explain it all.

Read more
Laravel + SQLite - works in php artisan tinker, but gives  "unable to open db file" - FIXED Thumbnail image

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

How to fix (one cause of) "General error: 14 unable to open database file"

Read more

Search site

About

Welcome to my site about web dev! You can find articles and tricks related to webdev - but focusing on PHP and Laravel.

All posts/pages are hand written by me. If you spot an error please get in touch :)

If you are looking to hire someone (for a big project, work, or to fix a small problem) get in touch :). I'm based in Europe, but from London originally. Contact