通过 composer 安装 yii2-braintree 的问题
Issue on installing yii2-braintree via composer
我已经通过 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.
我已经通过 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.