PHP 8: before and after
A developer shares practical examples of how PHP 8's new features, like attributes and static return types, will improve their event-sourced code.
A developer shares practical examples of how PHP 8's new features, like attributes and static return types, will improve their event-sourced code.
Explains PHP shorthand comparison operators: ternary, null coalescing, and spaceship operators, with examples and usage tips.
A comparison of PHP 8's new match expression versus the traditional switch statement, highlighting syntax, strictness, and benefits.
A benchmark analysis of PHP 8's JIT compiler performance in real-world web application scenarios, comparing tracing and function modes.
Explains PHP 8's constructor property promotion feature, a syntax shortcut for defining and initializing class properties in the constructor.
Survey results analyzing PHP developers' preferences for strict type systems versus dynamic typing, and how team/project size influences these views.
Explains the difference between using the + operator and array_merge() for merging arrays in PHP, focusing on key behavior.
Explains the difference between array_merge and array_merge_recursive for merging multidimensional arrays in PHP.
A survey analyzing the relationship between PHP type systems and project size, with results published on the author's blog.
Explores six key improvements and must-have features for customizing and enhancing Laravel Nova, the official Laravel admin panel.
Highlights key new features in PHP 7.4, including arrow functions, typed properties, and preloading, using concise code examples.
A quick overview of PHP 8's major new features, including attributes, union types, JIT, and the match expression.
Explains the PHP array_chunk function, demonstrating how to split arrays into segments and use it for statistical calculations like weekly averages.
A guide to creating and autoloading a custom PHP package locally using Composer, without publishing it to Packagist first.
A developer's analysis of how a minor version update in a Composer dependency caused a breaking change in a Laravel project, highlighting versioning pitfalls.
Explores an experimental event-driven PHP server architecture using in-memory state and event sourcing, with insights from a proof-of-concept.
Explains how to use bitwise operators and binary masks to store boolean flags efficiently in PHP, with practical examples.
A guide to implementing enum-like behavior in PHP before PHP 8.1, using polymorphism for type safety and value-specific logic.
A look at modern PHP's evolution, debunking common misconceptions and highlighting its improved type system and development practices in 2020.
Benchmarking the performance impact of PHP 7.4's preloading feature on a real Laravel application, comparing different preloading strategies.