Creating your own dependency injection container in PHP

2nd February 2019 8:45 pm

Dependency injection can be a difficult concept to understand in the early stages. Even when you're using it all the time, it can often seem…

Understanding query objects

27th January 2019 11:10 pm

The project I've been maintaining for the last year has inherited a rather dubious database structure that would currently be very difficult…

Writing a custom sniff for PHP CodeSniffer

13th January 2019 6:50 pm

I've recently come around to the idea that in PHP all classes should be final by default , and have started doing so as a matter of course…

You don't need that module package

3rd January 2019 11:55 pm

Lately I've seen a number of Laravel packages being posted on places like Reddit that offer ways to make your project more modular by…

Why bad code is bad

2nd January 2019 11:00 pm

This may sound a little trite, but why is it bad to write bad code? Suppose you're a client, or a line manager for a team of developers. You…