我正在尝试从github安装gitlist。在文档中,我被告知要安装作为依赖项:一些包裹为phpcpd,phploc。因此,我安装了作曲家,然后在Composer中添加了。JSON" phpcpd/phpcpd":" 1.4。"," phploc/phploc":" 1.7。"。当我尝试使用蚂蚁构建项目时,我会有以下消息:
Your requirements could not be resolved to an installable set of packages.
[exec]
[exec] Problem 1
[exec] - The requested package phpcpd/phpcpd * could not be found.
[exec] Problem 2
[exec] - The requested package phploc/phploc * could not be found.
所以我下载了phpcpd.phar和phploc.phar文件,但我不知道我能做什么。我可以直接从存档中提取文件并将其放入供应商文件夹中吗?顺便说一句,为什么作曲家找不到包裹
我认为这两个工具都不是作曲家软件包。你只是猜了吗?
phpcpd的github页面没有作曲家。
作曲家有一个梨类型存储库,您需要使用梨。
安装包装。{
"repositories": [
{
"type": "pear",
"url": "http://pear2.php.net"
}
],
"require": {
"pear-pear2.php.net/PEAR2_Text_Markdown": "*",
"pear-pear2/PEAR2_HTTP_Request": "*"
}
}
来自:http://getcomposer.org/doc/05-repositories.md#pear
对于像我这样的Googleers ...
"repositories": [
{
"type": "pear",
"url": "http://pear.phpunit.de"
}
],
"require-dev": {
"pear-pear.phpunit.de/phpcpd": "*",
"pear-pear.phpunit.de/phploc": "*",
"pear-pear.phpunit.de/PHP_CodeBrowser": "*"
}