The Need for Enums in PHP: Pre-8.1 Solutions
How we represented fixed value sets before PHP 8.1 introduced native enums, and the trade-offs of each approach.
Blog
My writing, videos and posts across platforms on software architecture, PHP, DevOps and product development. (Page 19/33)
How we represented fixed value sets before PHP 8.1 introduced native enums, and the trade-offs of each approach.
How binding API error responses to a consistent contract simplifies client development and debugging.
How to write more testable and maintainable code by moving business logic out of controllers and into single-purpose action classes.
Why switching from a Webpack-based dev environment to Vite makes build times dramatically shorter.
PHP 8.0 is out. I share how I've been using attributes and the nullsafe operator in real projects, and what they've actually delivered.
PHP 8.0 isn't out yet, but the RFCs and beta releases are already readable. Here are my notes on three key features worth understanding before release.