Install Composer on Ubuntu 16.04



Composer is an application-level package manager for the PHP programming language that provides a standard format for managing dependencies of PHP software and required libraries.

1- Installing Dependency

Before you are Downloding and installing composer, you have to make sure that your server already updated. all you need is to update Package manager chache by running this command
sudo apt-get update

you need curl and php7.0-cli to install composer  use this commond to install both of them

sudo apt-get install curl php7.0-cli

2- Download And Installas Composer

it’s really easy to install composer, all you need is just run this command
curl -sS | sudo php -- --install-dir=/usr/local/bin --filename=composer

Yes, after executing the Command above, Composer is already downloaded and installed as a system command named ‘composer’, in the / usr / local / bin directory. Well, after the composer is installed, there is a notification like this:
All settings correct for using ComposerDownloading 1.2.4… 
 Composer successfully installed to: /usr/local/bin/composer
 Use it: php /usr/local/bin/composer
make sure that you composer already installed properly by executing this command in you terminal



Taken from my personal blog

Tinggalkan Komentar