我创建了一个包,这是它的composer.json:
{
"name": "faustuzas/theme-downloader",
"description": "Easy to use bootstrap theme downloader",
"type": "command",
"require": {
"php": ">=5.6.0",
"guzzlehttp/guzzle": "^6.3"
},
"license": "MIT",
"authors": [
{
"name": "Faustas Butkus",
"email": "[email protected]"
}
],
"minimum-stability": "stable"
}
但是当我试图通过作曲家要求它时:composer require faustuzas/theme-downloader
问题出在哪儿?
没有必要使用"minimum-stability": "stable"
,因为它默认设置为“稳定”。你有一个分支,没有标签,所以packagist将你的包显示为dev-master,这是不稳定的。尝试创建新的分支,例如1.x
并添加标签,例如1.0.0
然后作曲家再次要求。