Engineering,
taught
&
leadership,
practised.
I'm Steven — CTO at Digitonic, a PHP engineer since 2010 and a keen golfer with a terrible handicap. This is where I write it all down.
Latest from the journal
Enums That Explain Themselves: __debugInfo() in PHP 8.6
Dumping a status enum has always shown you name and value and nothing you actually wanted. PHP 8.6 lets enums declare __debugInfo(), and one method covers var_dump, dd() and Ray.
Where Is the Signature? Jev Box Questions on Laravel Image Uploads
A Jev Box question answers where something is in an image, in plain English, as four fractions. Here's the Laravel client, the crop maths and the honest caveats.
Syntax Error, Line 1: PHP 8.6 Finally Tells You Where Your JSON Broke
PHP 8.6 adds the line and column of the failure to every JSON error message. Here is how to wire that into a Laravel app so bad webhooks diagnose themselves.