我有一些现在不重要的文件的私人存储库,我想创建的是将其包含在 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
它会返回正确的描述。我做错了什么。
你可以通过以下方式使用主分支吗
composer require pm/multi-curl:dev-master