How to install composer into Ubuntu OS for Laravel

How to install Composer into Ubuntu for Laravel

In this tutorial, I am going to install Composer, which is a dependency manager for PHP, into Ubuntu OS in a proper way.

Step 1: Before installing Composer for Laravel you have to install PHP and other packages. For this First follow this tutorial in the below link. 

Step 2: Run the following command to install Composer

curl -sS https://getcomposer.org/installer | php

Step 3: Now move composer.phar file to bin directory

sudo mv composer.phar /usr/local/bin/composer

Step 4: Now give permission to the composer folder to execute composer.phar file

sudo chmod +x /usr/local/bin/composer

Step 4: Now check the installed composer version

composer -v








Comments

Popular posts from this blog

How to create a droplet inside Digital Ocean