2
我已经通过作曲家成功安装了Braintree组件,现在我希望安装使用作曲家的yii2-braintree。通过作曲家安装yii2-braintree的问题
我插入,就像它的建议,在"bryglen/yii2-braintree": "*"
线在我composer.json的require
部分:
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": "*",
"yiisoft/yii2-bootstrap": "*",
"yiisoft/yii2-swiftmailer": "*",
"braintree/braintree_php": "2.37.0",
"bryglen/yii2-braintree": "*"
},
在那之后,我执行composer update
,结果是:
sudo composer update
Loading composer repositories with package information
Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package bryglen/yii2-braintree could not be found in any version, there may be a typo in the package name.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
我做错了什么?回购有问题吗?
现在安装它没有任何问题。你在'composer.json'中是否有这个设置:''minimum-stability“:”dev“'?似乎它缺少。这个扩展还没有稳定版本。 – arogachev 2015-02-05 18:24:35
@arogachev是的,你是对的。但现在又出现了一个错误。你安装的braintree_php **版本是什么?我安装了最后一个([2.37.0](https://developers.braintreepayments.com/javascript+php/sdk/server/setup))和安装yii2-braintree,它似乎需要2.30.0。 “没有找到匹配的软件包”就是它显示的内容。 – 2015-02-05 18:35:10
我只安装了'yii2-braintree','braintree_php'作为依赖安装。是的,版本是静态的 - '2.30.0'。 – arogachev 2015-02-05 18:46:03