Installing Composer on Debian. Composer is a dependency management tool used in PHP, to easily manage resources. Composer can install or update libraries, that you are using in your projects.
Minimum Requirements :
- Debian 6, 7 or 8
- PHP (including php-cli)
- Curl (use command sudo apt-get install curl, to install curl)
You can use the following PHP script to install composer. This process is very fast and will complete in seconds.
cd /usr/src
curl -sS https://getcomposer.org/installer -o composer-setup.php
php composer-setup.php --install-dir=/usr/local/bin --filename=composer
Ok. Now you can test the composer using the command. Open a terminal and type composer –version, which will display the current version of the composer, if installed properly.
The following script will install composer globally. If you want the composer for command inside a folder, use the composer.php (can be downloaded from internet) to use it.
I hope that you understand, Installing Composer on Debian. Drop your commands below.