Enter the project directory from the command line and run the following command:
composer update
If you already have the file composer.lock
(which is where Composer saves the references to each of the dependencies that are in the project), run the following command:
composer install
The command above depends heavily on the composer being available globally from the command line or not. You may prefer to download the Composer executable in the project itself with one of the following commands:
curl -sS https://getcomposer.org/installer | php
Or, if you do not have curl
:
php -r "readfile('https://getcomposer.org/installer');" | php
And then just replace composer
with composer.phar
, which is the name of the downloaded file.