嗨,當我嘗試安裝我得到這個問題SparkPost PHP Library:但隨着你的要求,這些衝突或最小穩定性
問題1個
- 請求包sparkpost/sparkpost版本號設置(解析爲1.0.0)可通過sparkpost/sparkpost [無版本集(解析的 爲1.0.0)]滿足,但這些與您的要求或最小穩定性相沖突。
當我試圖執行此命令看來:
composer require sparkpost/sparkpost
完全控制檯輸出:
You are running Composer with SSL/TLS protection disabled.
Using version ^2.0 for sparkpost/sparkpost
./composer.json has been updated
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 sparkpost/sparkpost No version set (parsed as 1.0.0) is satisfiable by sparkpost/sparkpost[No version set (parsed as 1.0.0)] but these conflict with your requirements or minimum-stability.
Installation failed, reverting ./composer.json to its original content.
作曲文件:
{
"name": "sparkpost/sparkpost",
"description": "Client library for interfacing with the SparkPost API.",
"license": "Apache 2.0",
"authors": [
{
"name": "SparkPost"
}
],
"minimum-stability": "stable",
"scripts": {
"post-install-cmd": "post-install.sh",
"post-update-cmd": "post-install.sh",
"test": "./vendor/bin/phpunit",
"fix-style": "php-cs-fixer fix ."
},
"require": {
"php": "^5.6 || ^7.0",
"php-http/httplug": "^1.0",
"php-http/message": "^1.0",
"php-http/client-implementation": "^1.0",
"php-http/discovery": "^1.0",
"php-http/guzzle6-adapter": "^1.1",
"guzzlehttp/guzzle": "^6.2"
},
"require-dev": {
"phpunit/phpunit": "^4.8 || ^5.4",
"mockery/mockery": "^0.9.4",
"friendsofphp/php-cs-fixer": "^1.11",
"nyholm/nsa": "^1.0",
"satooshi/php-coveralls": "dev-master",
"phpunit/phpcov": "2.*"
},
"autoload": {
"psr-4": {
"SparkPost\\": "lib/SparkPost"
}
},
"autoload-dev": {
"psr-4": {
"SparkPost\\Test\\": "test/unit"
}
}
}
任何搜索解決方案N +
PD:我試過設置"minimum-stability": "stable"
到"dev"
,但我有同樣的錯誤
您的'composer.json'如何看起來像? – martin
@Martin是在問題,我寫了作曲文件 –
這看起來像'composer.json'爲'sparkpost/sparkpost' – martin