About Composer -- don't do it for a long time ..

Source: Internet
Author: User

About Composer -- don't do it for a long time ..

The first "blood" in June"

 

When reading a book, I found that I like to start reading it from the end. Then, in the php classic instance, the last chapter is PEAR content. I know it's all about Composer. I just want to learn it.

 

I. What?

One sentence:Dependency management tools;

Explanation: it is convenient for you to download a library, a package, or something. It is basically php;

Http://baike.baidu.com/link? Url = Ql801yyOyi3P-8KVDTNst2eg2nq797pJQBrTB8GFZ6ga2gc68LKhIewpOk_D8BrrnACIM83yH6oxrXlNGVWJ8a

In addition, what dependency management, is a name, but it seems a bit profound meaning: Look at this http://www.infoq.com/cn/news/2011/05/ci-dependency-management/#anch68966

Ii. Installation

Http://www.phpcomposer.com/

According to this, install your own system and you need to know that this is implemented in the command line;

My wamphas .exe directly, and then it is installedFind the composer. phar file backup;

Iii. Use

See imooc on a yii framework of tools in the introduction of: http://www.imooc.com/learn/520

The key point is how to use: cd to the project file/create the folder where the project is located, and then. phar file path/composer. phar install yiisoft/yii 1.0.2

Other in-depth research is required.

Common situations: when you need to install jquery's package, go to the response package download page to find support: for example, yii2's

In addition, when the token of the github api is required, generate a token on github and copy the token once;

In addition, each interruption will cause file transmission failure. Before executing the command again, delete the file just now;

In addition, it is best to match the Chinese image first and set the speed up. Otherwise, the Internet, you know... Specific words packagist Chinese network have: http://www.phpcomposer.com/

Configuration here, a command to get it done, like this sour: http://pkg.phpcomposer.com/

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

Last process:

 

 

 

The above, but recently it is really too lazy...

 

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.