Blog

I write about problems or interesting solutions I have faced as a developer.


Using Generators for Pagination

Inspired by a recent tweet from @freekmurze, his upcoming Mailcoach PHP SDK contains a nice API for paginating through all records: Whilst I definitely like the idea of the...

November 9, 2022 | 3 minute read

Read

Using MySQL and Postgres functions in SQLite

A common debate in the community is whether you should use SQLite or the same database that you use in production for your tests; assuming you don't use SQLite in production. From the conversations...

October 3, 2022 | 3 minute read

Read

Generating A Client Secret For Sign In With Apple On Each Request

Recently I was tasked with adding Sign In with Apple to the federated authentication service we use at my day job. Like many other social providers, the open-source Socialite Providers organisation...

August 30, 2021 | 2 minute read

Read

Gzip Compression with Laravel Vapor

I was answering some Laravel questions on StackOverflow this week when I stumbled on a question asking how to enable GZIP compression on responses when using Laravel Vapor. We host a number of...

July 30, 2021 | 2 minute read

Read