[英]How to add package version number in custom Laravel package
Instead of using而不是使用
"require": {
"vendor/custom package" : "master@dev"
}
I want to use我想用
"require": {
"vendor/custom package" : "^1.0.0"
}
I couldn't find a way to add version number to the package. when I enter "*" instead of "dev@master", composer can't find the package in gitlab.我找不到将版本号添加到 package 的方法。当我输入“*”而不是“dev@master”时,作曲家无法在 gitlab 中找到 package。
"repositories": [
{
"type": "vcs",
"url": "https://gitlab.com/your-org/custom_package"
}
],
"require": {
"vendor/custom_package": "1.0.*"
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.