How to install composer using command line in ubuntu ?

Today now in this post i want to show you How we can install composer by using command line in ubuntu ? By using Composer we can easily get packages from the git and use it in our project. But we need to install composer in our system for getting the packages. We can easily get any packages for the core PHP, Laravel, codeigniter etc.

So, If we are working on ubuntu OS and we need to install composer then in this post i will help you quickly install composer by using terminal command line in your ubuntu system.

At First need to Open our terminal and then need to fire the bellow three commands, i listed just three command for install composer, we need to just run one by one:

curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
sudo chmod +x /usr/local/bin/composer

After the above command run successfully we can check this by following command:

composer

Read Also: Bootstrap Color Picker by using mjolnic colorpicker plugin

Thanks for read. I hope it help you. For more you can follow us on facebook

Shahriar Sagor

My name is Shahriar sagor. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help to other Developer's. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.