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】
直接拷贝进去
然后在Controller require就好了,如下图