Windows uses composer to introduce the official GitHub expansion pack

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.