composer create-project symfony/skeleton my-project
composer require twig
Install library to create controller:
composer require --dev symfony/maker-bundle
Install Doctrine Annotations to implement custom function annotations for classes and PHP functions.
composer require doctrine/annotations
Make controller:
php bin/console make:controller