Dynamic database connection based on request – Symfony and Doctrine

Symfony and Doctrine give us an easy way to deal with several databases if they are explicitly specified in a configuration file. However, there are some cases where we need…

Read more »

What’s new in PHP 8

PHP 8 has been finally released on November 26, 2020. The new major version of the language contains a long-awaited JIT compiler and some new features (union types, attributes, constructor…

Read more »

Solution for 419 Page Expired error in Laravel

The 419 Page Expired error is very common and easy to fix in Laravel applications. It’s caused by the internal framework mechanism called CSRF protection. CSRF stands for Cross-Site Request…

Read more »

Event bus in Symfony application

In the previous posts, we created a command bus and a query bus. Now is the time for the last of the most common buses, event bus. Of these three,…

Read more »

Query bus in Symfony application

In the previous post, we created a simple command bus. This time we are going to focus on query bus. Contrary to commands, queries return a value and don’t change…

Read more »

Command bus in Symfony application

Creating a command bus in a Symfony project is really easy. Most of the work is done by the composer recipes and the default configuration is usually almost enough to…

Read more »

The Messenger Component – introduction

The Messenger Component is a powerful and easy tool for building all kinds of message buses. It was created as a part of the Symfony ecosystem but it doesn’t mean…

Read more »