Complete the code to check if Composer is installed by displaying its version.
composer [1]The composer --version command displays the installed Composer version.
Complete the command to install Composer globally on your system.
php -r "copy('https://getcomposer.org/installer', '[1]');"
The installer script is saved as composer-setup.php before running it.
Fix the error in the command to move Composer to a global location.
mv [1] /usr/local/bin/composerAfter running the installer, the Composer binary is named composer.phar and should be moved.
Fill both blanks to create a new PHP project with Composer and install a package.
composer [1] && composer [2] monolog/monolog
composer init creates a new project, and composer require adds a package.
Fill all three blanks to update Composer and check its version.
composer [1] && php [2] --version
composer self-update updates Composer, then php composer.phar --version checks version.
