PHPnews.io

Overview for 'jolicode'

PHP Clone All The Things

Written by JoliCode / Original link on Jan. 5, 2022

(🇫🇷 Lire la version en Français) Every time I see clone in PHP code, I can't help but be a little scared. This simple keyword, although very clear, always puts me in doubt. What exactly is going to be cloned? First, the question brings me back to the basics of PHP: passing variables by value or by…


La guerre des clones PHP

Written by JoliCode / Original link on Jan. 5, 2022

(🇬🇧 Read the english version) À chaque fois que je vois clone dans du code PHP, je ne peux m'empêcher d'avoir un peu peur. Ce simple mot clef, en soit pourtant très clair, me met toujours face au doute. Qu'est-ce qui va être cloné précisément ? La question me ramène donc, dans un premier temps, aux…


Symfony Messenger 💛 systemd

Written by JoliCode / Original link on Dec. 29, 2021

In this article we will explore how to use systemd properly to run Symfony Messenger workers. What are Symfony Messenger and systemd? Symfony documentation says: The Messenger component helps applications send and receive messages to / from other applications or via message queues. Concretely, our…



Rate limit your Symfony APIs!

Written by JoliCode / Original link on Nov. 22, 2021

Sometimes, you need to put some custom rate limits on your APIs! In this article I'll show you how you can combine the symfony/rate-limiter component and some usual controllers. RateLimit configuration The goal here is to have the following rate limit configuration works thanks to PHP8 attributes…