How to Install Composer on Ubuntu 16.04 and 18.04

How to Install Composer on Ubuntu 16.04 and 18.04

Today, We will discuss about how to install composer on Ubuntu 16.04 and 18.04. Ubuntu is a free and open-source operating system and it is a popular operating system for cloud computing.

Introduction Composer

The composer is a package manager libraries. it is managing the PHP application and it is used for specially laravel framework. let’s see the below example.

Install Dependencies for Composer

The PHP version must be installed to 5.3.2 or higher version for the installation composer. PHP stands for Hypertext Preprocessor and it’s a run based on server-side. so we need to install apache server MySQL and PHP. if you didn’t install PHP in your system then you can install through the below article URL.

Install Composer on Ubuntu

We will download the composer using the below command.

Now we move the composer.phar file into the bin folder and set the permission for all users.

check composer installed or not ubuntu

After the installation composer, we will check the composer is installed or not using the below command.

Update Composer on Ubuntu

If you have already downloaded or installed the composer and you want to update the composer on ubuntu then you can below command.