6/1/2018 - 10:42 AM


PHPStorm Config
PHPStorm plugins
-> symfony plugin
-> php annotations
-> php toolbox

PHPStorm -> Preferences -> PHP -> Symfony -> Enable for this project -> web directory: 'public'
PHPStorm -> Search: Composer -> path to composer.json in project

composer create-project symfony/skeleton my-project           // for microservices, console apps, api's
composer create-project symfony/website-skeleton my-project   // traditional web applications // symfony recepies server

composer require symfony/web-server-bundle --dev

git add .
git commit -m "Initial commit"

composer require sensiolabs/security-checker --dev

composer require symfony/maker-bundle --dev
-> bin/console list make
-> bin/console make:controller --help

composer require annotations
composer require --dev symfony/profiler-pack
composer require symfony/twig-bundle
composer require asset

composer unpack package_name  // removes main package, replace it with includes subpacks in composer.json

git diff composer.json

rm -rf var/cache/dev/*    // removes cache directory

bin/console debug:autowiring