Composer installation, and download thinkPHP

Open Composer Chinese network (https://www.phpcomposer.com/), click on the navigation bar, "download"

Jump to the download page (latest version 1.8.4), click on " Composer-Setup.exe  " installation package, download

After opening the installation package composer, check the "Developer mode" (this operation optional), and then select the "next",

 

Select the path composer installed, choose to install to my D drive, and then point "next"

This php.exe to select the installation path, (I was phpstuday2018 version), and then point the "Next"

To this step directly point "Next", other uncheck (use a proxy slow),

 

 To which the installation was successful. Point "Finish"

 

Are there tests composer installed, open cmd, enter the composer, it appears as shown, that the installation was successful, the latest version V 1.8.6

 

 

To download before thinkPHP, the first change at the mirror, otherwise the download will be very slow,

Open the Chinese mirror https://pkg.phpcomposer.com/#how-to-use-packagist-mirror  

或:composer config -g repo.packagist composer https://packagist.phpcomposer.com

Open cmd enter the above command, press Enter, did not respond, it means modified successfully.

Now with a newly installed composer install the latest version of thinkPHP,

Open again open Composer Chinese network (https://www.phpcomposer.com/), click on "Install Package List"

Enter think in the page that opens, now the first "topthink / think" that is thinkPHP, click

 

 After the page that opens, displaying "composer create-project topthink / think" is the composer thinkPHP installation command, the latest version is 6.0

And optional side version

Download thinkPHP

如果下载前,没更改路径,那么下载好的thinkPHP在我的文档里。

 

Guess you like

Origin www.cnblogs.com/zhx567/p/11199358.html