Generics in depth
An in-depth look at generics in PHP, covering their use beyond collections and how static analyzers implement them via docblocks.
An in-depth look at generics in PHP, covering their use beyond collections and how static analyzers implement them via docblocks.
An introduction to generics in PHP, explaining what they are, why PHP lacks them, and their potential future in the language.
A look at PHP's modern features, active development, and thriving community in 2021, debunking the myth that the language is dead.
Practical strategies for updating PHP projects when external dependencies don't yet support the latest PHP version, including testing, contributing, and finding alternatives.
An overview of modern PHP features in 2022, including PHP 8.1's enums, readonly properties, and the growing static analysis ecosystem.
Analysis of PHP version usage statistics from January 2022, showing adoption rates for PHP 8.1, 8.0, and older versions.
A Laravel security tip emphasizing the critical importance of validating all user input to prevent unexpected behavior and security vulnerabilities.
A technical benchmark comparing the performance of PHP's include() vs file_get_contents() for reading files, with surprising results.
A step-by-step guide to upgrading PHP to version 8.1 on macOS using the Homebrew package manager, including handling extensions and Laravel Valet.
Overview of new features in PHP 8.1, including enums, fibers, performance improvements, and new syntax like readonly properties.
Real-world performance benchmarks comparing PHP 8.1 to PHP 8.0, showing a 5-8% speed improvement.
A reference list of PHP 8.0 token names with their corresponding decimal and hexadecimal values for debugging and parsing.
A developer argues for using 'protected' over 'private' visibility for class properties in PHP, discussing flexibility and use-case considerations.
A concise overview of PHP 8.1's new features, including enums, readonly properties, fibers, and array unpacking, demonstrated through code examples.
A video and transcript explaining how to implement and use generics in PHP via docblocks, with support from PHPStan, Psalm, and PhpStorm.
A developer's analysis of using attributes for routing in PHP, weighing pros and cons and proposing solutions for scaling.
A technical deep dive into the inner workings of the Livewire framework, explaining how it enables dynamic PHP components in Laravel.
PHP 8.1 introduces the 'new in initializers' feature, allowing the use of `new` expressions in parameter defaults, attributes, and more.
A guide to using Sail CLI for performance profiling of WordPress sites, analyzing PHP functions, database queries, and actions/filters.
A guide to starting a quick HTTP server from the command line using Python, Ruby, Node, and PHP as alternatives to the VSCode liveserver extension.