Generics in PHP (video)
A video and transcript explaining how to implement and use generics in PHP via docblocks, with support from PHPStan, Psalm, and PhpStorm.
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.
A reflection on how frameworks are born from revolutionary ideas and how popularity can lead to their eventual decline, using examples like Laravel and Joda Time.
Guide to finding and updating Azure WebApps using PHP 7.3 before its end-of-support date to maintain security and support.
Explains PHP 8.1's new readonly properties for creating immutable data transfer and value objects, comparing code examples from older PHP versions.
A Laravel security tip explaining how to use a custom encryption key for encrypted model attributes instead of the default app key.
A response to Matthias Noback's blog post on PSR abstractions, discussing their role in PHP framework interoperability and the value of standardized interfaces.
A nuanced look at using named arguments in PHP open source projects, addressing maintainer concerns about backwards compatibility and cleaner syntax.
A programmer questions the inconsistency in using fully qualified class names in doc blocks versus real PHP types, exploring rational thinking in coding habits.
Explains how Livewire, a Laravel framework, creates a 'live' UI illusion using AJAX requests and state serialization, not persistent connections.
Argues that static analysis can replace runtime type checks in PHP, enabling features like generics without performance cost.
A developer's overview of impactful new features in PHP 8.1, including enums, array unpacking, and readonly properties.
Explores the benefits of an event-driven architecture over linear code when building a gamification system for a tech platform.
Explains the limitation of cloning readonly properties in PHP 8.1 and introduces a package to work around it using a `with()` method.
A proposal for using typed request classes in Laravel to combine validation and data representation, eliminating the need for separate DTOs.
Analysis of PHP version usage statistics from July 2021, showing adoption trends and a discussion on upgrading to PHP 8.