Implementing Visitor Pattern in PHP and Symfony

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… Read More Implementing Visitor Pattern in PHP and Symfony

Implementing Builder Pattern in PHP and Symfony like a boss!

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.… Read More Implementing Builder Pattern in PHP and Symfony like a boss!

DDD, Hexagonal Architecture & CQRS with Symfony and Doctrine

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… Read More DDD, Hexagonal Architecture & CQRS with Symfony and Doctrine

Lockdown diaries - React + Symfony + Api Platform: the perfect combination

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… Read More Lockdown diaries - React + Symfony + Api Platform: the perfect combination

Authentication with VueJs using Symfony and Api Platform – Part 1

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… Read More Authentication with VueJs using Symfony and Api Platform – Part 1

Just another PoC of Symfony on steroids
: Api Platform, Vue.js, Mercure and Panther

In this post I will show how simple it is to create a modern reactive application by harmoniously combining the elements listed below. PHP 7.2 Symfony 4.2.4 Api Platform Mercure Panther Vuejs The work of this article is inspired by the presentation of Kenvin Dunglas during the Symfony Live in Paris in March 2019. We’re… Read More Just another PoC of Symfony on steroids
: Api Platform, Vue.js, Mercure and Panther