Reference Document composer: composer Chinese network
- Installation composer: Windows installation: using the installation program: https: //docs.phpcomposer.com/00-intro.html#Using-the-Installer
- Make sure PHP commands are global to PHPstudy for example: PHPstudy just install it, open cmd, enter PHP -v command to see if PHP is global, not, configure the environment variables.
- Let me talk about the PHP configuration environment variable: find the "Advanced System Settings" (choose one way to find environment variables)
- ① My Computer - Properties - Advanced - Environment Variables ②win8,10 direct "View Advanced System Settings" in the search box search - Environment Variables
- Find the variable "Path" (win10 with ②) ① back in the original plus "; D: / xammp / php" (directory php.exe where, in front there is a;) ② or by adding a new "D: / xammp / php "
- Reopen cmd: win + R, enter php -v (see php version information)