PHP Enums: Complete Guide to Best Practices (PHP 8.1+)
Complete guide to PHP enums: pure vs backed enums, comparison, pre-8.1 patterns, when not to use enums, and best practices from production codebases.
Posts about PHP development.
Complete guide to PHP enums: pure vs backed enums, comparison, pre-8.1 patterns, when not to use enums, and best practices from production codebases.
Complete guide to PHP readonly properties (8.1) and readonly classes (8.2): immutability benefits, getters vs readonly, syntax differences, constraints, and when to use each.
Mocking in unit tests is a powerful technique. This post addresses when and how to use mocks properly in PHP.
Complete guide to PHP traits: what they are, what changed in PHP 8.0–8.3, why they violate SOLID principles, and why Dependency Injection is the better alternative.
Practical guide to migrating PHP applications to Laminas and Mezzio: PSR compliance, module structure, Guzzle builder pattern, ConfigProvider caching, and PSR-7 stream pitfalls.
I set up a home server and manage it with puppet. This blog summarizes the setup step by step and shows my learnings.
This blog post is part of preparation for a computer science interview in big tech. Summarizing my computer science skills in a blog post.
A brief summary of how to migrate large databases to MySQL 5.7 and steps upgrading MySQL while keeping production up and running.
PHPAlgorithms is released in version 1.0.0. Read about the improvements and breaking changes for this stable release.
A feature that a colleague and me were developing has caused us to stumble across an interesting and edge case problem with PHP exceptions.