composer

composer is PHP package manager, to install, run

curl -sS https://getcomposer.org/installer |  php -- --install-dir=/usr/local/bin --filename=composer

Manual Install

Download latest version of composer.phar from

https://getcomposer.org/download

At the time of writing latest version is 2.9.2, before you install find latest version and update link below.

mkdir ~/bin
wget https://getcomposer.org/download/2.9.2/composer.phar
mv composer.phar ~/bin/composer
chmod 755 ~/bin/composer

Install Packages

Run this every time you change composer.json or pull newer copy from git.

composer install

Show Installed Packages

composer show -i

Update Software

Only run this if you need to update software versions. Don’t run it in production. Only run when you are project maintainer and need everyone else use latest version of packages.

composer update

Comments

Leave a Reply

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