xxxxxxxxxx
composer install
composer update
// -> add more new package from composer.json file
// So we need to note the version of each package on composer.json
xxxxxxxxxx
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '795f976fe0ebd8b75f26a6dd68f78fd3453ce79f32ecb33e7fd087d39bfeb978342fb73ac986cd4f54edd0dc902601dc') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
xxxxxxxxxx
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
xxxxxxxxxx
//Update your packages:
sudo apt-get update
//Install Curl to get the composer library:
sudo apt-get install curl
//Installing composer:
sudo curl -s https://getcomposer.org/installer | php
//Move the composer file to bin path :
sudo mv composer.phar /usr/local/bin/composer
//Verify composer installation :
composer
xxxxxxxxxx
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
php -r "unlink('composer-setup.php');"