我有私人存储库,其中包含一些现在不重要的文件,我想要创建的包是将它包含到composer.json
{
"name": "pm/multi-curl",
"description": "Package to multicurl",
"version": "master",
"type": "library",
"minimum-stability":"dev",
"require": {
"ext-curl": "^7.1"
},
"repositories": [
{
"type": "package",
"package": {
"name": "pm/multi-curl",
"version": "dev-master",
"source": {
"url": "git@pmgit.pm.com:dk/multicurl.git",
"type": "git",
"reference": "master"
},
"autoload": {
"psr-0" : {
"PM\\MultiCurl" : "src"
}
}
}
}
],
"authors": [
{
"name": "dk",
"email": "dk@example.com"
}
]
}
但是当我执行composer require pm/multi-curl
作曲家给我这条消息时Could not find a version of package pm/multi-curl matching your minimum-stability (stable). Require it with an explicit version constraint allowing its desired stability.
我试图将稳定性改为dev,但这根本没有帮助。我也尝试使用看起来像这样的composer.json:
{
"name": "pm/multi-curl",
"description": "Package to multicurl",
"version": "master",
"type": "library",
"minimum-stability":"dev",
"require": {
"ext-curl": "^7.1"
},
"authors": [
{
"name": "dk",
"email": "dk@example.com"
}
]
}
pmgit.pm.com是gitlab并在我执行composer search performance-media/multi-curl
时通知您它返回正确的描述。我做错了什么。
答案 0 :(得分:0)
您可以使用master分支吗
composer require pm/multi-curl:dev-master