Reply content:
Determine if your PHP can be started properly using the command line.
The GUI installer is not recommended, and it is recommended to install it with the command line.
Reference: Packagist/composer China Full-volume image-How to install Composer
php -r "readfile('https://getcomposer.org/installer');" > composer-setup.phpphp composer-setup.phpphp -r "unlink('composer-setup.php');"
Global Installation
The global installation is to install Composer under the path contained in the system environment variable path, and then be able to execute the Composer command directly in the command-line window.
Windows System:
Locate and go to the installation directory of PHP (and the PHP instructions you execute on the command line should be the same set of PHP).
Copy the Composer.phar to the PHP installation directory, which is the same level directory as Php.exe.
Create a new Composer.bat file in the PHP installation directory and save the following code to this file.
@php "%~dp0composer.phar" %*
Finally reopen a command-line window try executing composer--version to see if the version number is correctly output.
I just follow this method to install successfully, PHP version 7.0.1, but the installation of the Shadowsocks Global System Agent opened, so the installation is very smooth.
Remember to add the Php.exe directory to the system path.