Symfony 4

Install

composer self-update

Update composer repo DB

composer create-project symfony/skeleton symfony-demo Install project with symfony

PHP Storm plugin

Annotations route

composer require annotations

Flex

It includes

Security checker

composer require security-checker

bin/console security:check

DB

Initial

composer require doctrine
composer require maker
composer require doctrine/doctrine-migrations-bundle

Create database

# make sure .env file has correct DATABASE_URL
php bin/console doctrine:database:create

Make an entity

php bin/console make:entity

Make a migration

php bin/console make:migration

ƒ

Migrate

php bin/console doctrine:migrations:migrate

Checking

php bin/console doctrine:migrations:status