Ubuntu - Install Composer

Just run the commands below: sudo apt-get update sudo apt-get install curl -y curl -sS https://getcomposer.org/installer | php sudo mv composer.phar /usr/bin/composer sudo chmod +x /usr/bin/composer Now you can run all the composer commands from any directory, such as: composer update…

Read this article