Table of Contents
Was this article helpful?
Try Vultr Today with

$50 Free on Us!

Want to contribute?

You could earn up to $300 by adding new articles!

Install Composer on CentOS 7

Last Updated: Tue, Oct 18, 2016
CentOS Linux Guides System Admin

👋 This article needs updates.

Please help us update it! We pay for new and updated articles.
See Vultr's Request for Article (RFA) System for details and include RFA# 1156 in your request.


Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.


  • CentOS 7
  • cURL
  • PHP (including php-cli)


The installation process of Composer is relatively simple. First, let's get in the good habit of updating our server.

# sudo yum -y update

Switch into the temp directory.

# cd /tmp

Install Composer using cURL

# sudo curl -sS | php

Want to make Composer globally accessible?

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


Composer is an essential tool for any PHP developer. It is very easy to install and you will save countless hours over the years automating your dependencies. Happy developing!

Want to contribute?

You could earn up to $300 by adding new articles