I put it in the path directory of the system so that it can be accessed globally.
Curl-ss Https://getcomposer.org/installer | Php
MV Composer.phar/usr/local/bin/composer
This command only checks a small amount of PHP configuration, and then download the Composer.phar file to your working directory, this file is the composer executable file, it is a Phar (PHP archive, which can contain any files, and can be executed on the PHP command line).
Test whether the installation was successful
Composer-v
Composer version 1.0-dev (FEEFD51565BB8EAD38E355B9E501685B5254D0D5)
The above words indicate that the installation was successful!
Composer is a dependency management tool for PHP. It allows you to declare the code base on which the project depends, and it installs them for you in your project. Composer is not a package manager. It involves "packages" and "libraries", but it is managed on a per-project basis and installed in a directory of your project (for example, vendor). By default it will not install anything globally. Therefore, this is only a dependency management.
PHP Administration Tools Composer Installation & testing