我已经通过 Composer 成功安装了 Braintree 组件,现在我希望也使用 Composer 安装yii2-braintree https://github.com/bryglen/yii2-braintree.
我插入了,就像推荐的那样,"bryglen/yii2-braintree": "*"
线在require
我的部分作曲家.json:
"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.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)