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...