Nos articles taggués « php »
Create your own shiny Open Graph images with Imagine PHP
You might not have noticed, but we use our own custom Open Graph preview images for our articles. Some of you asked us how we did it, so here you go! In this article we will explain how to use the php-imagine/Imagine…
par Hédic Guibert
Symfony, reverse proxies and IP protection
Following an issue encountered on one of my projects, I had to dive into how IP protection works in Symfony applications when at least one reverse proxy is in front of them. After some research, trial and error, …
par Loïck Piera
Symfony Webhook & RemoteEvent, or how to simplify external event management
During the SymfonyCon 2022 conference at Disneyland Paris, Fabien Potencier unveiled two new components to the Symfony community: Webhook and RemoteEvent. They have recently (March 2023) been merged into the 6.3…
par Mathieu Santostefano
Astuces pour traiter des gros volumes de données dans Symfony
Dans la vie d’un développeur, il arrive forcément un moment où l’on doit traiter un volume important de données via une ligne de commande. Et les premières fois, ça fait BOOM 💥, on utilise du memory_limit=-1, des…
par Baptiste Leduc
Symfony Webhook et RemoteEvent, ou comment simplifier la gestion d’événements externes
Lors de la conférence SymfonyCon 2022 à Disneyland Paris, Fabien Potencier a dévoilé à la communauté Symfony deux nouveaux composants : Webhook et RemoteEvent. Ces derniers ont récemment (mars 2023) été mergés…
par Mathieu Santostefano
Quick PHP tip: Initialize a DateTime object from string, but with time resetted
Initialize the PHP DateTime object For a variety of reasons, we all have to initialize DateTime objects from strings like 2023–02–14. The quick and clean way to get an object from this kind of string is to use…
par Mathieu Santostefano
Redis et la mémoire de PHP sont dans un bateau, il coule
La situation initiale 👍 Dans un de nos projets, nous avons un endpoint d’API qui retourne de gros JSON à ses clients. Les clients sont des serveurs, donc la bande passante n’est pas un problème. Il y a quelques…
par Grégoire Pineau
Tips for a PayPal implementation with Symfony in 2022 🪙
We recently had to implement a PayPal payment. It was my first payment implementation ever and I obviously wanted to do it right. The thing is, our client wanted a specific behavior, when we were more worried about…
par Marion Hurteau
Notre Forum PHP 2022 à Disneyland
L’équipe des JoliCodeurs était présente en force à Disneyland pour assister au Forum PHP 2022 : le plus gros événement PHP de l’année et notre pèlerinage annuel au pays des éléPHPants. Nous y avons présenté trois…
par Damien Alexandre, + 4 autres
Nous avons essayé de décoder un format binaire avec PHP
Nous nous sommes récemment intéressés à un format de données binaires appelé Smile. Notre objectif était d’écrire un encodeur / décodeur en PHP pour ce format, dans le cadre d’un exercice pratique pour mon alternance…
par Hédic Guibert
How to See Full Request URI in FPM Status
Or: How FPM status page can help when some URLS are blocked? I changed some code in my application, and now the tests suite is failing with many timeout errors. Huh?! 😮 What happened? The initial setup Before my…
par Grégoire Pineau
Use Bayesian Averages to Improve Rating Sorting in your Elasticsearch Index
EDIT: There were two typos in this article. In the formula we were wrong about the position of one of the arguments which made it wrong, we invite you to check again the formula so you can fix it too. And in the…
par Baptiste Leduc
Des frites, du PHP et de la bière
Eh oui, vous l’aurez deviné, c’est à Lille que s’est tenu l’AFUP Day 2022 ! Voici ce que nous en avons retenu, entre un welsh et une carbonade. Autour de PHP PHP 8.1 en détail – Damien SEGUY Quoi de mieux pour…
par Baptiste Leduc, + 1 autre
Using Symfony Form in WordPress
What a strange idea! Once upon a time, a developer was asked to move a form from one application to another. The source application was a Symfony app. The target application was WordPress, the CMS that runs the…
par Damien Alexandre
PHP Clone All The Things
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…
par Jérôme Gangneux
La guerre des clones PHP
À 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…
par Jérôme Gangneux
Rate limit your Symfony APIs!
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…
par Baptiste Leduc
Dites-nous tout !
Un de nos articles vous a aidé dans votre travail et vous voulez nous remercier ? Vous avez trouvé une typo ou une erreur ? N’hésitez pas à nous le faire savoir en nous envoyant un message