Subscribe to the Atom Feed PHP

General PHP tips, tricks, and techniques.

December 8, 2019  •  Mac PHP

Upgrade the PHP CLI to 7.4 on Mac

On Mac, PHP can be easily upgraded to 7.4 with Homebrew. However, the command line may continue to show the previous version. Here's how to fix that. Upgrade to PHP 7.4 with Homebrew on Mac is a very...
Read Full Post →

March 27, 2019  •  PHP

Simulate HTTP Exception Status

This may seem so obvious that I shouldn't be blogging about it but I'm doing it anyway. I haven't really had to simulate a specific HTTP exception but recently I needed to create some custom 404, etc...
Read Full Post →