我是后端语言的菜鸟,我很惊讶我成功安装了作曲家。
我正在使用Siteground共享托管,并且正在尝试使用条纹。在条纹文档中,他们说要键入:
composer require stripe/stripe-php
这是作曲家文件:
{
"name": "stripe/stripe-php",
"description": "Stripe PHP Library",
"keywords": [
"stripe",
"payment processing",
"api"
],
"homepage": "https://stripe.com/",
"license": "MIT",
"authors": [
{
"name": "Stripe and contributors",
"homepage": "https://github.com/stripe/stripe-php/contributors"
}
],
"require": {
"php": ">=5.4.0",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"php-coveralls/php-coveralls": "1.*",
"squizlabs/php_codesniffer": "~2.0"
},
"autoload": {
"psr-4": { "Stripe\\" : "lib/" }
},
"extra": {
"branch-alias": {
"dev-master": "2.0-dev"
}
}
}
错误消息:
问题1 -stripe / stripe-php [未设置版本(解析为1.0.0)]可满足请求的包stripe / stripe-php未设置版本(解析为1.0.0)],但这些与您的要求或最低稳定性冲突。