This article to you to share is in the Windows environment using composer installation ThinkPHP5 specific steps and methods, very simple and practical, the need for small partners can refer to the following
1. Environment check, please make sure your environment is installed Composer,composer is a dependency management tool for PHP, set the image with the following command
Command:composer config -g repo.packagist composer https://packagist.phpcomposer.com
Mirror Reference Address: https://pkg.phpcomposer.com/
Effect:
2. Download the TP5 framework
Command:composer create-project topthink/think=5.0.* tp5 --prefer-dist
Description: TP5 is the project name, can be modified according to your needs, my Tp5 folder will be downloaded to E:\wamp\www this directory
Effect:
3. Go to the E:\wamp\www directory to view the downloaded TP5 framework
Effect:
4. Start the service and access
Access Address:http://localhost/tp5/public/
Effect:
5. End, use composer installation ThinkPHP5 complete, and can use, start your happy journey!