Configure Symfony 4 with PostgreSQL on Ubuntu or Mac

How to configure Symfony 4 with PostgreSQL on Ubuntu or Mac OS Install PostgreSQL on Ubuntu   Easily install PostgreSQL from the command line with apt-get.

Install PostgreSQL on Mac    On Mac OS, go to your terminal and use brew as shown here.

Use composer to install Doctrine    If Doctrine is not already installed, […]