Elegant immutable object pattern in PHP (dev.to)
As many of you know, immutability is an extremely useful concept that makes code more predictable and...
As many of you know, immutability is an extremely useful concept that makes code more predictable and...
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.
PHP 8.3 is a major update of the PHP language. It contains many new features, such as explicit typing of class constants, deep-cloning of readonly properties and additions to the randomness functionality. As always it also includes performance improvements, bug fixes, and general cleanup.
...and how to avoid it. Type coverage is a way to gradually add type declarations to your PHP project—step by step, one by one. It's a PHPStan package that helps you maintain a specific minimal level from 0 % to 100 %. Once we reach high coverage of 80-90 %, we feel safer. But our code can actually be in worse, even dangerous,...
Germany's Sovereign Tech Fund has been making significant, much-needed investments into various open-source upstream projects from the GNOME desktop to Rust-written Coreutils and more
Did you know you can perform a full-text search in a database using PhpStorm (any IntelliJ based IDE)
In the first post, we looked at the long-term effects of our decisions. Turning a legacy project into a fresh one is a matter of the "just do it" approach. But there are 3 things we should take with care even if our project seems outside the legacy project category. First of those are arrays.
When creating applications with PHP, Exceptions play a vital role in handling errors and irregularities that arise during the application lifecycle. We are going to see how to use Custom Exceptions to improve our applications.
Have you ever wondered how a language sets about adding new features, or deciding what changes from...
In this article, we'll explore the process of creating JSON Web Tokens (JWTs) from scratch in PHP, presenting a superior and more secure authentication scheme. By implementing this advanced approach, we unveil a robust and highly secure authentication mechanism that significantly enhances data protection and user authentication....
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.
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.
A blog about modern PHP, the web, and programming in general. Follow my newsletter and YouTube channel as well.
Single Page Applications, AJAX loading of content… there are legitimate reasons to use these technologies. That said I am constantly amazed…
A quick guide to JWTs in PHP
In the previous article, I wrote about a particular setup you can use to configure Docker on WSL...
No dangerous code has been resurrected for this article
Explore AI-driven testing techniques to improve the reliability of PHP applications.
D'après Wikipedia : WebAssembly, abrégé wasm, est un standard du World Wide Web pour le développement d’applications. Il est conçu pour remplacer JavaScript avec des performances supérieures. Le standard consiste en un bytecode, sa représentation textuelle et un environnement d'exécution
By upgrading to 8.3, you can achieve a significant increase in speed. In this article, we dive into how PHP 8.3 can be a game changer. It can speed up your application's performance.
In the first post, we looked at the long-term effects of our decisions. Turning a legacy project into a fresh one is a matter of the "just do it" approach. But there are 3 things we should take with care even if our project seems outside the legacy project category. The second of those is mocks.
How to effectively use interfaces to make your PHP package easier to work with and more customizable than ever before.
Welcome to the December edition of PHP Annotated! In it, we look back over some of the most interesting developments in the PHP community during the past month, featuring handpicked news, articles, to
In a recent shift of maintainership, Juliette Reinders Folmer has taken the helm of the PHP_CodeSniffer project, injecting fresh energy and vision into its development. This transition marks a pivotal moment, emphasizing the importance of community support, particularly from corporate entities. As a vital tool for maintaining...