Symfony is a full-featured modularized PHP framework which is used for building all kinds of applications, from traditional web applications to the small Microservice components.

Get your feet wet

Install PHP 8 and PHP Composer tools.

# choco php composer

Install [Symfony CLI](symfony check:requirements), check the system requirements.

# symfony check:requirementsSymfony Requirements Checker…

As shown in the former we assembled everything manually in the MainVerticle class. We will use Spring IOC to manage the dependencies.

For example, it looks like the following.

//Create a PgPool instance
var pgPool = pgPool();
//Creating PostRepository
var postRepository = PostRepository.create(pgPool);
//Creating PostHandler
var postHandlers = PostsHandler.create(postRepository);
//…

Hantsy

Self-employed technical consultant, solution architect and full-stack developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store