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
PHP 8.6 Lets Postgres Fetch in Chunks, and Your Laravel Export Stops Eating RAM
DB::cursor() never actually streamed on Postgres — libpq buffered the whole result set first. PHP 8.6's Pdo\Pgsql::ATTR_CHUNK_SIZE fixes that, with one sharp edge.
Logging IP Addresses Without Storing Them: PHP 8.6's ipcrypt in Laravel
PHP 8.6 adds the ipcrypt family to ext-sodium. It encrypts an IP address into another valid IP address, so your audit table keeps its column type, its index, and its queries — without the raw address.
The Heading With One Word on the Last Line: text-balance and text-pretty
Two Tailwind utilities that delete the non-breaking-space hack — plus the line-count cap that makes one of them useless on paragraphs.