Last blog posts

PHP

Published on 2022-09-03 • Modified on 2022-09-07

This post shows how to use PHP 8.1 enumerations in a Symfony project. We review the different steps to use this new PHP 8.1 useful feature in different parts of a Symfony application.

subject Read the full post


PHP

Published on 2022-07-25 • Modified on 2022-07-25

This post shows how to upgrade PHP with the ondrej/php repository on an Ubuntu server, step by step, to avoid forgetting something.

subject Read the full post


Symfony

Published on 2022-06-11 • Modified on 2022-06-12

This post shows how to initialize a Symfony project with solid foundations. I give several bits of advice about this crucial step that determines how your project will evolve in the long run; will it stay maintainable and fun to work with? Or will it become the legacy project everyone tries to avoid?

subject Read the full post


Symfony

Published on 2022-02-12 • Modified on 2022-02-12

In this post, we see a simple solution to mock API calls with the Symfony HTTP client, declare a scoped HTTP client and test it with or without mock.

subject Read the full post


Symfony

Published on 2021-12-22 • Modified on 2021-12-22

In this post, we see how to organize your Symfony project tests. We check all the available test types and create consistent and robust test suites.

subject Read the full post


Symfony

Published on 2021-10-28 • Modified on 2021-10-28

In this post, we see how to create custom PHPStan rules for a Symfony project. We will check Symfony best practices but also more specific rules.

subject Read the full post


PHP

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.

subject Read the full post


Symfony

Published on 2021-06-30 • Modified on 2021-06-30

In this post, we will see how to implement a user workflow with Symfony and EasyAdmin3. We will use the Symfony workflow component to handle the users' state and we will use EasyAdmin3 to modify this state with custom actions.

subject Read the full post


Symfony

Published on 2021-04-04 • Modified on 2021-04-04

In this post, we will see how to create an end-to-end test scenario using Symfony, Panther and Vue.js with a concrete example.

subject Read the full post


API Platform

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.

subject Read the full post