Home » How to Install Composer in Ubuntu

How to Install Composer in Ubuntu

by Online Tutorials Library

How to Install Composer on Ubuntu 16.04 LTS?

Introduction

Composer is a dependency manager that is used to manage application packages. It is used for PHP programming.

It was developed by Nils Adermann and first released on 2012.

In this tutorial, we will install composer on Ubuntu. This process includes the following steps.

Prerequisites

  • Ubuntu
  • terminal Login
  • PHP

Composer Installation

Use the following commands to download and install composer.

Software Composer 1

Software Composer 2

Software Composer 3

A file composer.phar is downloaded to the current directory.

Move and Rename Composer.phar

We need to move composer.phar file to the /usr/bin/ location to access it globally. Use this command.

Software Composer 4

Well, composer has installed successfully, we can check it by typing composer to the terminal.

Software Composer 5

Now, we can use it to manage PHP application packages.

You may also like