Rate this post

Last Updated on August 31, 2020 by Vikash Ekka

How To Install PHP Composer on Ubuntu
How To Install PHP Composer on Ubuntu

This tutorial will help you how to install and configure the PHP composer on Ubuntu 20.04 LTS, Ubuntu 18.04 LTS and Ubuntu 16.04 LTS. Composer is an application-level package manager for the PHP programming language. It provides a standard format for managing dependencies of PHP software and required libraries. It define required libraries for our project and install it with the composer in the single command


  • Open Terminal in sudo privilege.
  • PHP must be installed and configured, version 5.3 or higher.
  • Ubuntu should be updated. 

Install Composer on Ubuntu 

 Just copy and paste below commands to install composer on Ubuntu System .

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

PHP composer has been successfully install on your Ubuntu system. Type composer at the command prompt. This will provide you detailed composer  version along with options available with composer command.

Please let me know if you have any questions or comments on this post.

By Vikash Ekka

Hi All, My name is Vikash Ekka from India. I’m the founder and tech editor of https://www.vetechno.in. I have completed my Graduation in BCA. I love to write technical articles like Windows, Linux & MAC Tutorials, Tips, Tricks, How To fix, Tutorials About Ethical Hacking & Cyber Security Guide, and Software Review. Currently, I have been working as an IT professional since 2018.

Leave a Reply

Your email address will not be published. Required fields are marked *