[英]Composer require apigility cant find package bshaffer/oauth2-server-php:dev-develop even though it's clearly on packagist
Im trying to install apigility on top of my current zf2 skeleton project. 我正在尝试在当前的zf2骨架项目之上安装apigility。 I ran
composer require zfcampus/zf-apigility:dev-master --prefer-dist -vvv
and I get zfcampus/zf-apigility dev-master requires bshaffer/oauth2-server-php dev-develop -> no matching package found.
我运行
composer require zfcampus/zf-apigility:dev-master --prefer-dist -vvv
然后我得到zfcampus/zf-apigility dev-master requires bshaffer/oauth2-server-php dev-develop -> no matching package found.
The package and version tag match what's on Packagist . package和version标签与Packagist上的内容匹配 。 I tried turning on "minimum-stability": "dev" in my own composer.json but got the same result.
我尝试在自己的composer.json中打开“ minimum-stability”:“ dev”,但结果相同。 How can I get composer to resolve this?
如何让作曲家解决此问题?
{
"name": "zendframework/skeleton-application",
"description": "Skeleton Application for ZF2",
"license": "BSD-3-Clause",
"keywords": [
"framework",
"zf2"
],
"homepage": "http://framework.zend.com/",
"require": {
"php": ">=5.3.3",
"zendframework/zendframework": "2.2.*"
}
}
You will have to include a bunch of other packages for the installation to succeed, since Apigility is not a single package: 由于Apigility不是一个单独的软件包,因此您必须包括许多其他软件包才能成功安装:
"require": {
"php": ">=5.4.8",
"bshaffer/oauth2-server-php": "dev-develop",
"rwoverdijk/assetmanager": "~1.3",
"zendframework/zendframework": "~2.3-dev",
"zfcampus/zf-apigility": "~1.0-dev",
"zfcampus/zf-apigility-provider": "~1.0-dev",
"zfcampus/zf-api-problem": "~1.0-dev",
"zfcampus/zf-content-negotiation": "~1.0-dev",
"zfcampus/zf-content-validation": "~1.0-dev",
"zfcampus/zf-hal": "~1.0-dev",
"zfcampus/zf-mvc-auth": "~1.0-dev",
"zfcampus/zf-oauth2": "~1.0-dev",
"zfcampus/zf-rest": "~1.0-dev",
"zfcampus/zf-rpc": "~1.0-dev",
"zfcampus/zf-versioning": "~1.0-dev"
},
"require-dev": {
"zendframework/zftool": "dev-master",
"zendframework/zend-developer-tools": "dev-master",
"zfcampus/zf-apigility-admin": "~1.0-dev",
"zfcampus/zf-configuration": "~1.0-dev",
"zfcampus/zf-apigility-welcome": "~1.0-dev"
}
Try including the missing packages from above and/or update the ones you already have with the versions above. 尝试包括上面缺少的软件包和/或使用上述版本更新您已经拥有的软件包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.