Composer life hacks

composer which used books as stands for piano

Composer life hacks

Switching between composer 1 & 2:

composer self-update --1   --> switch to composer 1

composer self-update --2   --> switch to composer 2


If you only want to install, upgrade or remove one dependency, you can explicitly list it as an argument:

php composer.phar update monolog/monolog [...]


composer dump-env dev - will generate .env.local.php (which you can change with your needs)


Installing tools globally:

php composer.phar global require friendsofphp/php-cs-fixer
or just 
composer global require friendsofphp/php-cs-fixer

Comments

Popular posts from this blog

Открываем порт для сервера Minecraft на роутере mikrotik (команда для терминала в WinBox)

Интересное о Формальдегиде