You write code, so you write tests You may have a different version: You write tests before you...
The name is pretty self-explanatory. It caches the render of a given partial. While it can optimize...
Hugo is a fantastic piece of software, IMHO. It's highly flexible and covers lots of great features,...
Context: Tests have been working fine so far, and, suddenly, it seems to fail. Why? While it's...
What are facades? Laravel comes with an internal mechanism called Facades, which provides...
PHP developers love constructors 🫶. You only need to implement a method named __construct() in your...
Developers love boolean parameters 😅. You may use names such as is_enabled, is_active, is_published,...
Frameworks such as Symfony (7.2 at the time of writing) or Laravel are highly customizable and...
Phpstorm is a fantastic IDE for PHP developers. While it's not free, you get pretty cool features,...
Mocks in short Mocks aim to test the behavior of real objects. They simulate...
Critical features for businesses often rely on dates, such as subscriptions, recurrent payments, or...
The Garbage Collector (GC) is the internal memory management system in PHP, but there are some...
This post is heavily inspired by the tech talk by Gina Banyard at the "FORUM PHP 2024": ...
Last week, I attended the "Forum PHP 2024." \0/ What is Forum PHP? Forum PHP 2024 is...
It's easy to build REST APIs that break the principle of idempotency. It happens when identical...
Multibyte characters can be tricky in programming. Warning mbstring is not enable by...
Working with time zones can be tricky in programming. As PHP is meant for the web, the language...
You may add "yet" to this title! Sometimes, things are what they are simply because nobody knows how...
It might seem obvious, but performance is a concern, and it's easy to make mistakes in that...
Let's see if that's possible, then we'll see when to use it. Is is possible? Can...
PHP 8.4 is expected for this fall. Let's review the RFC "Property Hooks." Disclaimer...
Why bother with tests anyway? Unit tests encourages developers to write modular and...
The recent attempt to compromise XZ, a library included in many Linux distributions out of the box,...
The problem By default, the ssh-keygen command writes public/private keys in the ~/.ssh...
PHP has built-in helpers to make all kinds of sorting and filtering with arrays, but is it always the...
The empty() helper is a built-in PHP function that is often used to check inputs. The problem is it...
PHP provides built-in helpers to manipulate the output buffering, but it can be tricky to debug. ...
Let's practice with a basic Secret Santa generator in Python. What is Secret...
PHP 8.3 is available with cool features you might not know yet. You have now a built-in...