Published on 2023-05-20 • Modified on 2023-05-20
In this post, we see how to use Symfony forms with PHP typed properties and non-nullable one. Let's see the problems that can occur and how to handle them.
Published on 2022-11-19 • Modified on 2022-12-08
In this post, we rewrite a previous article that used API Platform 2.6 to use the new major version of API Platform 3.
Published on 2021-10-02 • Modified on 2021-10-02
This post is different from what I use to do. It will be a reference, a "cheat sheet" mentioning all available exceptions with PHP.
Published on 2020-12-31 • Modified on 2020-12-31
In this post, we will see how to secure an API with JWT and API Platform. We will generate JWT security tokens thanks to the lexik/jwt-authentication-bundle, and we will take advantage of the new property security parameter introduced in API Platform 2.6.
Published on 2020-12-03 • Modified on 2021-09-03
In this post, we will see how API Platform can help us to document and migrate manual endpoints in a Symfony application. We will see concrete examples related to this blog application.
Published on 2019-12-22 • Modified on 2021-12-24
In this post, we will check all the Symfony best practices listed in the official documentation. For each one, I will say if I agree with it or not and why.
Published on 2019-12-07 • Modified on 2019-12-07
In this post, we will see how to implement a simple honeypot in a Symfony form to avoid spam. We will try it on a newsletter form with a unique email field. We'll also log what is blocked by the trap to check if it works correctly.
Published on 2019-06-29 • Modified on 2019-07-01
In this post, we will see how to implement a simple feature flag. This flag will help us to debug our forms and will allow to disable the HTML5 client side validation of all the forms of an application.