HostOnNet Blog

Install Composer

Looking for Linux Server Admin or WordPress Expert? We can help.

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.