1. Download Compser.phar address https://getcomposer.org/download/
2. Create a new Composer.bat file, write "@php"%~dp0composer.phar "%*"
3. Put Composer.bat Composer.phar two files into
4. Write to the environment variable ";D: \phpstudy\php\php-5.4.45;d:\phpstudy\php\php-5.4.45\ext" (the folder name here needs to be changed in the environment variable, environment variable: Right-click My Computer--Properties , advanced system settings, environment variables->path-> Edit, separated by semicolons, add this sentence at the end)
5. Run the Composer.bat file under Administrator privileges (Flash over)
6./* Open the Linux command line (win+r) cmd run phpstudy/php/folder name/composer.bat*/
7. When you see the composer version, the installation is successful.
8. Enter under phpstudy/www/
composer create-project topthink/think tp5(文件夹名)
After running, TP5 is created to complete the
THINKPHP5 Development Manual Address https://www.kancloud.cn/manual/thinkphp5/118003
Query Manuals Run
If the following error is reported
Open the Phpstudy (7.0 environment) configuration file, open
First manual installation of composer detailed instruction under Windows