how to install composer latest version

4.5
(2)

Install the necessary packages if they are missing

# sudo apt install curl php-cli php-mbstring git unzip
# curl -sS https://getcomposer.org/installer -o composer-setup.php

To perform a global composer installation, type:

# sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer

This command will download the Composer manager package and install it globally in / usr / local / bin, after which the public composer command will appear on the system. Do not run Composer as root/super user! Run with normal user. The output will look like this:

$ composer
   ______
  / ____/___  ____ ___  ____  ____  ________  _____
 / /   / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__  )  __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
                    /_/
Composer version 1.9.0 2019-08-02 20:55:32

Usage:
  command [options] [arguments]

Similar Posts:

952

How useful was this post?

Click on a star to rate it!

Average rating 4.5 / 5. Vote count: 2

No votes so far! Be the first to rate this post.

Scroll to Top