Bienvenue sur WordPress. Ceci est votre premier article. Modifiez-le ou supprimez-le, puis commencez à écrire !
Bienvenue sur WordPress. Ceci est votre premier article. Modifiez-le ou supprimez-le, puis commencez à écrire !
Introduction Auth0 is a very powerful solution to manage the authentication of your applications.Even if its documentation is very well done, it is not immediate to understand how to use it.The PHP SDKs allow you to do many things and today I would like to show how I use them to authenticate a user in a Symfony…
Introduction I will soon be changing jobs and the clean architecture is used in the new company. So I decided to experiment with it by making a POC.Maybe it can inspire someone. Or could someone help me to correct any errors in my approach. As far as I could understand there are two main approaches…
In my latest article I showed my implementation of the Pattern Builder with support of Symfony’s Service Tag.I love this Symfony service, and this time I would like to show you how to use it to implement another design pattern: The Visitor pattern, less known than the Builder pattern but also very nice and useful. To do this we…
I would like to show you my implementation of the very popular Pattern Builder in PHP using the Symfony framework I will not dwell on this pattern, because there are hundreds of articles that already do this. We can simply say that: Builder is a creational design pattern that lets you construct complex objects step by step….
Example of a Symfony application using Domain-Driven Design (DDD) and Command Query Responsibility Segregation (CQRS) principles keeping the code as simple as possible. The whole code can be found here. Environment Setup Needed tools Install Docker Clone this project: git clone https://github.com/salletti/symfony-ddd-example.git Move to the project folder: $ cd symfony-ddd-example Application execution If not already done, install Docker Compose Run docker-compose…
As it is known the csa guzzle package is no longer maintained. Still many projects use it, and therefore will have to switch client in the short term. One of the projects I’m working on was using Csa Guzzle and in a very short time I switched to Symfony HttpClient. Obviously the first thing to…
The days are long during the lockdown, so I decided to learn ReactJs from scratch or almost. “Almost” because Javascript, even if it’s not the language which I best know, I still often used it. I’ve also got some knowledge about VueJs. After 15 days of quarantine, an application came out. You can view and…
Yesterday we saw how to secure our API with a Token and how to use the Token in VueJs. Today we will see how to authenticate a user in our application in a SPA context using VueJS. Let’s proceed step by step. 1. Security with Symfony A) Create User Entity <?php namespace App\Entity; … /**…
During my experience as a software developer, I have observed that one of the most delicate issues is authentication. So I wanted to add a brick to my previous post, in order to explain how to set up a basic authentication process. Starting from the Bookstore application that we created during the previous PoC, let’s…