例如,我想要:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/google/google-api-php-client.git"
}
],
"require": {
"google/apiclient": "v1-master"
}
}
Run Code Online (Sandbox Code Playgroud)
在这个例子中,我尝试google/apiclient在分支上v1-master.我收到错误:
[UnexpectedValueException]
Could not parse version constraint v1-master: Invalid version string "v1-master"
Run Code Online (Sandbox Code Playgroud) composer-php ×1