我正在创建自己的Slackbot。我决定使用项目作为库来帮助我。
https://github.com/sagebind/slack-client/issues?utf8=%E2%9C%93&q=stability
现在我需要使用Composer安装它。
所以我使用了以下命令:composer require coderstephen/slack-client
...然后我收到了错误消息:
Problem 1
- Installation request for coderstephen/slack-client ^0.3.0 -> satisfiable by coderstephen/slack-client[v0.3.0].
- coderstephen/slack-client v0.3.0 requires devristo/phpws dev-master -> satisfiable by devristo/phpws[dev-master] but these conflict with your requirements or minimum-stability.
好的 - 那么我决定将我的 composer.lock
文件中的稳定级别更改为 "dev" :
"aliases": [],
"minimum-stability": "dev",
"stability-flags": {
"devristo/phpws": 20
},
"prefer-stable": true,
"prefer-lowest": false,
"platform": {
"php": ">=5.5"
},
"platform-dev": []
现在我已经不知道该做什么了。README中说要在composer.json中执行此步骤,但是并没有这样的设置:
请注意当前版本存在不稳定的依赖关系。
为了安装这些依赖项,您可以在您的composer.json中设置“minimum-stability”,并建议您设置“prefer-stable”:
我的composer.json:
{
"name": "coderstephen/slack-client",
"keywords": ["slack", "api", "realtime"],
"license": "MIT",
"description": "A better Slack client, with RTM API support",
"authors": [{
"name": "Stephen Coakley",
"email": "me@stephencoakley.com"
}],
"require": {
"php": ">=5.5",
"devristo/phpws": "dev-master",
"evenement/evenement": "2.0.*",
"guzzlehttp/guzzle": "~6.0",
"react/event-loop": "^0.4.1",
"react/promise": "^2.2"
},
"require-dev": {
"phpunit/phpunit": "~4.6",
"fzaninotto/faker": "~1.4",
"apigen/apigen": "^4.1"
},
"autoload": {
"psr-4": {
"Slack\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Slack\\Tests\\": "tests"
}
}
}
有人知道我可以尝试的解决方案吗?