Install Composer on CentOS 7

Installation

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 https://getcomposer.org/installer | php

Want to make Composer globally accessible?

# mv composer.phar /usr/local/bin/composer
# chmod +x /usr/local/bin/composer

To find the version of composer simply use the following command.

# composer -V

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

วิธีเปลี่ยน hostname บน CentOS 7 และ RHEL 7 ด้วย hostnamectl

โดยการใช้คำสั่ง hostnamectl การใช้งานคำสั่งนี้ก็ง่ายมาก ถ้าต้องการดู hostname ก็ใช้คำสั่ง...

วิธีเปลี่ยน hostname บน CentOS 7 และ RHEL 7 nmtui command

You can set host name using nmtui command which has text user interface for new users: # nmtui...

วิธีเปลี่ยน HostName ใน RHEL และ CentOS 6.X

ก่อนเปลี่ยนแปลงแนะนำให้ตรวจสอบสถานะ hostname ปัจจุบันก่อนครับด้วยคำสั่ง hostname  ...

วิธีแก้ IP บนเซิร์ฟเวอร์ RHEL / CentOS 7 ด้วย nmtui

nmtui (Network Manager Text user interface) is a command line program available in RHEL/CentOS 7...

วิธี ตั้งค่า TUI Firewall CentOS 7 และ RHEL 7

To setup TUI Firewall settings in CentOS 7, follow the steps below:-   First go to...