Setting up a new project using Symfony 4

C Code Sep 13, 2018 Tutorial

Install composer

To create your new Symfony application, first make sure you're using PHP 7.1 or higher and have Composer installed. If you don't, start by installing Composer globally on your system. If you want to use a virtual machine (VM), check out Homestead.


Install Symfony 4

composer create-project symfony/website-skeleton my-project


The website-skeleton is optimized for traditional web applications. If you are building microservices, console applications or APIs, consider using the much simpler skeleton:

composer create-project symfony/skeleton my-project


Run Symfony locally

 cd my-project
 php bin/console server:run


php -S -t public