Blog

Pest: Run Only Tests In One File

Pest: Run Only Tests In One File

Pest is our tool of choice when it comes to testing in PHP. It is built on top of the tried and tested PHP Unit and adds a bunch of useful helpers which improve the DX. One I use often is the...

Read more

Surviving in Scrubs

Surviving in Scrubs

The NHS is one of those things that we never appreciate enough.  Free healthcare at the point of delivery is something we utterly take for granted in the UK, but it's one of THE greatest things...

Read more

Ensuring All Stray PHP Files Are Run Through ECS

Ensuring All Stray PHP Files Are Run Through ECS

Easy Coding Style is a really nice code-style checking tool. It combines the best of both PHP-CS-Fixer and PHP Code Sniffer, it's easy to use and has a declarative config with all kinds of useful...

Read more

Streaming Command Output To The Browser

Streaming Command Output To The Browser

Following on from my last post about output buffer streaming I wondered if it was possible to stream the output from a Laravel Artisan command to the browser. You might be asking "but why?"...

Read more

Go directly to the browser. Do not pass GO, do not collect $200

Go directly to the browser. Do not pass GO, do not collect $200

Recently I needed to provide a simple CSV export function which allowed users to download some dynamic data. I wanted to use PHPs inbuilt fputcsv function so I didn't have to think about...

Read more

GDPR: can we justify third-party scripts?

GDPR: can we justify third-party scripts?

I’ve written before about how managing privacy on websites is bigger than just deciding whether you need a cookie banner. In this post, we look in more detail at how websites process PII, how it...

Read more

Sometimes You Don't Need A Dependency

Sometimes You Don't Need A Dependency

When developing new features it is all too easy to go immediately to packagist.org and see if that wheel has already been invented. Most of the time this is the right approach. We don't need new...

Read more

Livewire Testing: Undefined array key "fingerprint" Error

Livewire Testing: Undefined array key "fingerprint" Error

Recently I've been using Filament CMS quite a lot. It makes use of Livewire through out and as with any new technology I've been exploring what it can do. While writing a component test I ran...

Read more

Completely Hiding The Wordpress Version Is Hard

Completely Hiding The Wordpress Version Is Hard

We develop and maintain a couple of WordPress sites. There are a number of things we will do as standard to secure each site. One of these is running WPScan. It checks for all kinds of things but...

Read more

Automatically Find The Best Image Compression

Automatically Find The Best Image Compression

Recently I was tweaking the default quality values used to compress images on one of our sites. The quality value is a number between 0 and 100. 100 produces a large file size and has high...

Read more