我创建了自己的包,但无法在另一个项目中连接它:
[InvalidArgumentException]
找不到与您的最低稳定性 (dev) 匹配的包 mepihindeveloper/php-query-param 版本。要求它具有明确的版本约束,以允许其所需的稳定性。
这是新项目的composer.json:
{
"name": "mepihindeveloper/php-query",
"description": "Component for working with query string",
"type": "library",
"license": "MIT",
"keywords": [
"component",
"class",
"php",
"query",
"params",
"query string"
],
"authors": [
{
"name": "mepihindeveloper",
"email": "mepihindeveloper@gmail.com"
}
],
"require": {
"php": ">=7.4"
},
"autoload": {
"psr-4": {
"mepihindeveloper\\components\\query\\": "src/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"require-dev": {
"codeception/codeception": "^4.1",
"codeception/module-phpbrowser": "^1.0.0",
"codeception/module-asserts": "^1.0.0"
}
}
我这样连接composer require mepihindeveloper/php-query-param
:作曲家版本:Composer version 1.6.3 2018-01-31 16:28:17
.
另一个类似的包连接没有问题......我做错了什么?