我已经通过composer成功安装了Braintree组件,现在我希望也使用composer安装yii2 Braintree。
正如推荐的那样,我在composer.json:的require
部分插入了"bryglen/yii2-braintree": "*"
行
"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"
好像不见了。这个扩展还没有稳定的版本。
只安装yii2-braintree
,braintree_php
将作为静态版本的依赖项安装-2.30.0.