DWQA QuestionsCategory: PHPInstall composer in ubuntu ?
asked 6 years ago

Step 1 — Installing the Dependencies
Before we download and install Composer, we need to make sure our server has all dependencies installed.
First, update the package manager cache by running:

  • sudo apt-get update

Now, let’s install the dependencies. We’ll need curl in order to download Composer and php5-cli for installing and running it. git is used by Composer for downloading project dependencies. Everything can be installed with the following command:

  • sudo apt-get install curl php5-cli git

You can now proceed to the next step.
Step 2 — Downloading and Installing Composer
Composer installation is really simple and can be done with a single command: