Windows uses composer to introduce the official GitHub expansion pack
1. When you open the mighty RC4 version of the link, pull down you can see this
, then you have to do is to think, Baidu composer, see what is a ghost, don't think too much, follow me away.
Next click on the composer Chinese document, then click on the download you will see
When you're done downloading, click Open
Click Next after found do not know how to continue, normal, here is the prompt you choose PHP folder under the Php.exe file, here I choose the following:
In general, click Next to wait for three minutes or so, there is no problem,
This is your personal preference, I do not have a point straight until next to finish. Then, you are installed, here I default you are installed ha.
The next step is to http://www.kancloud.cn/thinkphp/thinkphp5_quickstart/145249, which is the official Quick Start Handbook.
See no, to read more manual, here is ready, continue to go down
,
When you open the URL in the diagram, you can see
Next to your root directory, create a new folder Tp5, and then create a new Composer.json under the folder.
After the above part is done, it starts to knock the order, is not very excited,
,
After typing the code is a long wait, after all, is to download, spell not only the speed. At least I'm still waiting.
And so on, you can first download a git to prepare for the following operations,
, I've installed git here.
Then look at the command window.
Display has been downloaded, very good, and then open the Tp5 folder, found to be a latest version of the THINKPHP5.0RC4 version of the framework, continue to write commands: first
Then
Here's the key, open cmd under the folder opened by the TP5 project, enter the composer command mentioned above: composer require Topthink/think-captcha
Wait a little longer you will see as shown:
Now the above pre-installed Git to show the skill, here prompts git is not internal command, do not matter, walk you:
Click Computer-"Properties-Advanced system Settings-" Environment variables-"Double-click path-" and then paste the git path you copied before to this string of letters, remember not to overwrite, is preceded by a semicolon and then copied to the back:
After clicking OK again, go back to the command window and re-enter the previous composer command:
You look at your project folder Tp5 more than one vendor folder, inside the Tothink file below is the extension package you loaded in
MONGO composer command for expansion pack: Composer require Topthink/think-mongo
(Excerpt from http://www.thinkphp.cn/code/2192.html)
Windows uses composer to introduce the official GitHub expansion pack