For example I want to require:
{
\"repositories\": [
{
\"type\": \"git\",
\"url\": \"https://github.com/google/google-api-php-client.git\"
this will work :
{
"repositories": [
{
"type": "git",
"url": "https://github.com/google/google-api-php-client.git"
}
],
"require": {
"google/apiclient": "dev-BRANCH_NAME"
}
}
so pattern is "dev-*", if you branch name is "bug-fix" then "dev-bug-fix"
with command line :
composer require google/apiclient:dev-BRANCH_NAME
You need to prefix all dev branches (= non tagged) by dev-
.
To install the branch you need, use:
composer require google/apiclient:dev-v1-master
See composer docs.