我正在开发流明的后端,并希望集成条带连接.
我正在使用composer require rap2hpoutre / laravel-stripe-connect这个库用于条带连接.
我有关于安装laravel-stripe-connect的问题,
像以前我使用条带,它工作正常,但根据要求,我想使用stripeConnect而不是条纹.
现在,当我运行这个作曲家需要rap2hpoutre / laravel-stripe-connect时,它会显示以下错误:
Problem 1
- Installation request for rap2hpoutre/laravel-stripe-connect ^0.2.1 -> satisfiable by rap2hpoutre/laravel-stripe-connect[v0.2.1].
- rap2hpoutre/laravel-stripe-connect v0.2.1 requires stripe/stripe-php ^5.0 -> satisfiable by stripe/stripe-php[v5.0.0, v5.1.0, v5.1.1, v5.1.2, v5.1.3, v5.2.0, v5.2.1, v5.2.2, v5.2.3, v5.3.0, v5.4.0, v5.5.0, v5.5.1, v5.6.0, v5.7.0, v5.8.0, v5.9.0, v5.9.1, v5.9.2] but these conflict with your requirements or minimum-stability.
这是我的composer.json文件:
{
"name": "laravel/lumen",
"description": "The Laravel Lumen Framework.",
"keywords": ["framework", "laravel", "lumen"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.6.4",
"laravel/lumen-framework": "5.5.*",
"vlucas/phpdotenv": "~2.2",
"tymon/jwt-auth": "^1.0@dev",
"illuminate/mail": "^5.5",
"stripe/stripe-php": "^6.21"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"phpunit/phpunit": "~6.0",
"mockery/mockery": "~0.9"
},
"autoload": {
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"classmap": [
"tests/",
"database/"
]
},
"scripts": {
"post-root-package-install": [
"php -r \"copy('.env.example', '.env');\""
]
},
"minimum-stability": "dev",
"prefer-stable": true,
"optimize-autoloader": true
}
最佳答案 您应该将“stripe / stripe-php”:“^ 6.21”更改为“stripe / stripe-php”:“^ 5.9”,因为您尝试导入的库使用^ 5.0标记,它只允许使用格式标记的构建5.x的您的要求高于此值至少6.21,因此要求失败.