【已解决】ThinkPHP应该把composer安装在哪个目录下?

ThinkPHP 3.2.3
已经下载了composer,下载得到的composer.phar应该放在哪个目录下?ACPHP是项目名字。

D:\wamp\www\ACPHP>mkdir compo

D:\wamp\www\ACPHP>cd compo

D:\wamp\www\ACPHP\compo>curl -sS http://install.phpcomposer.com/installer | php

!/usr/bin/env php

All settings correct for using Composer
Downloading...

Composer successfully installed to: D:\wamp\www\ACPHP\compo\composer.phar
Use it: php composer.phar

D:\wamp\www\ACPHP\compo>

=============================================================

D:\wamp\www\ACPHP\compo>php composer.phar require qiniu/php-sdk
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug

[Composer\Repository\RepositorySecurityException]
The contents of http://packagist.org/p/provider-2013%24ebbc851bfc30654cd54df607e51500a43b7acbf4a21fd7eea33788153f4d177c.json do not match its signature. This should
indicate a man-in-the-middle attack. Try running composer again and report this if you think it is a mistake.

require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages]
[-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...

D:\wamp\www\ACPHP\compo>

=====================================
最新状态,已放弃composer【2016-01-06 14:33】

阅读 5.7k
1 个回答
新手上路,请多包涵

clipboard.png
直接拷贝进去
然后在Controller require就好了,如下图

clipboard.png

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进