我已成功通过composer安装了Braintree组件,现在我也希望使用作曲家安装yii2-braintree。
我按照我的 composer.json 的"bryglen/yii2-braintree": "*"
部分中的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.
我做错了什么?回购股票有问题吗?
答案 0 :(得分:3)
确保composer.json
:
"minimum-stability": "dev"
似乎缺少了。此扩展程序尚未发布稳定版本。
仅安装yii2-braintree
,braintree_php
将作为依赖项安装为静态版本 - 2.30.0 。