Transforming an array into a traversable object with PHP (www.strangebuzz.com)
This snippet shows how to transform an array into a traversable object with PHP. A reminder: iterable is a type hint introduced in PHP 7.1, whereas Travers
This snippet shows how to transform an array into a traversable object with PHP. A reminder: iterable is a type hint introduced in PHP 7.1, whereas Travers
I'm not sure how big of a series I want to make this. But here we go. The target of the series is to...
Regular blogging by Terence Eden.
Property Hooks Os property hooks são funções que controlam como uma propriedade é setada...
The Property Hooks RFC for PHP moves closer to coming to PHP 8.4 with an overwhelmingly positive 34/1 vote. Learn about Property Hooks in PHP and the syntax outlined in the proposal.
PHP popularity has dropped dramatically, coinciding with WordPress becoming "JavaScript-first" according to its co-creator Matt Mullenweg.
When we upgrade a new project to the best version possible, the latest PHP and framework versions, it's not only about changing syntax sugar to a more fancy one. It's about the vast focus shift in project management so far. It's a change to master. I want to share the basic rules we apply to make the "impossible" upgrades...
PhpStorm, the PHP IDE by JetBrains, released version 2024.1 this week with a brand new terminal, local AI code completion, Pest improvements, and more.
An article by Rob Allen
Jeffrey Way shares his PhpStorm set up.
Currently, the de-facto standard to Dockerizing PHP applications is to use the Docker PHP official image. This is maintained by Docker itself and community members and has compiled PHP with no extensions. To install extensions, we have to do this in our Dockerfile: FROMphp:8.2-cliRUN docker-php-ext-install pdo pdo_mysql curlThe...
PHP-FPM config files usually aren't something that you give too much attention to until something goes wrong. Here's what you can do when that time comes.
The PHP Foundation — Supporting, Advancing, and Developing the PHP Language
A blog about modern PHP, the web, and programming in general. Follow my newsletter and YouTube channel as well.
This is the story of the manufacturing of seven-league boots for a function that is responsible for processing XML/HTML data in the PHP library. Optimizations in the PHP standard library, like here in ext/dom, have the potential to speed up the performance of applications significantly by an upgrade to the current PHP version. I...
Single Page Applications, AJAX loading of content… there are legitimate reasons to use these technologies. That said I am constantly amazed…
A blog about modern PHP, the web, and programming in general. Follow my newsletter and YouTube channel as well.
A quick guide to JWTs in PHP
Introduction I'm thrilled to announce the release of TransformersPHP, a new library...
We observed an almost 40% reduction of CPU usage in our PHP servers by upgrading from Ubuntu 20.04 LTS to Ubuntu 22.04 LTS.
Imagine a scenario where we have to buy a bunch of products in a single operation (or transaction,...
In the previous article, I wrote about a particular setup you can use to configure Docker on WSL...
Most of you are aware that using Docker locally on Windows with Hyper-V enabled can be really slow...
No dangerous code has been resurrected for this article
Always with the goal of improving my way of writing code, I discovered a few years ago Adam Wathan...