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
website-skeleton is optimized for traditional web applications. If you are building microservices, console applications or APIs, consider using the much simpler
composer create-project symfony/skeleton my-project
Run Symfony locally
php bin/console server:run
php -S 127.0.0.1:8000 -t public