Composer update

That’s it. Symfony 4 swept off all other PHP frameworks. I know, that in 2018 I’ll be using composer for PHP and npm for Javascript. To create a new project with Symfony:

cd /var/www/html/
composer create-project symfony/skeleton sf4

Unless I double checked all the requirements, I still had a problem with some packages that couldn’t be found. I could only suspect my composer was outdated.

composer --version
Composer version 1.0.0-beta2 2016-03-27

So I went to https://getcomposer.org/download/ webpage and downloaded the newest version of a composer.phar file. Next copy your new file to the bin direcotory:

sudo mv composer.phar /usr/local/bin/composer

or just

sudo mv composer.phar /usr/bin/composer

Now let’s check composer version:

composer --version
Composer version 1.5.6 2017-12-18 12:09:18

Next time to update your composer, use

composer self-update