Install composer globally on Ubuntu all version
A composer for PHP is a dependency management tool and package manager used in PHP development. It simplifies the process of adding, updating, and managing external libraries, packages, and frameworks within PHP projects. Composer helps developers avoid manually downloading and including each component by automating the process.
For install composer type on console:
sudo apt-get update
For install you will need have "curl", if you don't have installed please install by snap.
sudo snap install curl
Then download this:
sudo curl -s https://getcomposer.org/installer | php
Then for set globally move file to "bin" forder.
sudo mv composer.phar /usr/local/bin/composer
Then its all. Type this command for test it.
composer
References:
https://getcomposer.org/doc/00-intro.md#globally
Comments
Post a Comment