素材牛VIP会员
【已解决】ThinkPHP应该把composer安装在哪个目录下?
 zh***ni  分类:ThinkPHP  人气:923  回帖:1  发布于6年前 收藏

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】

讨论这个帖子(1)垃圾回帖将一律封号处理……

Lv2 入门
he***ba JS工程师 6年前#1


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

 文明上网,理性发言!   😉 阿里云幸运券,戳我领取