HostOnNet Blog


Install Composer

php-composer

Composer is PHP package manager. Something like npm, pip etc.. used by other languages.

To install composer, run

cd /usr/local/bin/
curl -s https://getcomposer.org/installer | php
mv composer.phar composer
chmod +x composer

Install dependency using composer

composer install

List Installed Packages

composer show -i

Update Packages

composer update

Posted in PHP