PHPnews.io

Overview for 'php'

Flysystem 3.0.0 is released

Written by Frank de Jonge / Original link on Jan. 14, 2022

On the 13th of January 2022, version 3.0.0 of Flysystem was released. The library ships a couple new methods on the main filesystem and adapter interfaces, making it a breaking change that cause a major version increase.What changed?During the design phase of Flysystem 2, I took a good look at the…


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…




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…