I try to add repository from github (designmodo/Flat-UI), play with config and get errors No valid composer.json was found in any branch or...
, Your requireme
It only worked for me removing the label, like this:
{
"repositories":[
{
"type": "package",
"package": {
"name": "designmodo/Flat-UI",
"version": "1.3.0",
"source": {
"url": "https://github.com/designmodo/Flat-UI",
"type": "git",
"reference": "master"
}
}
}
],
"require": {
"twbs/bootstrap-sass": "~3.2",
"designmodo/Flat-UI": "*"
},
}
Problem solved. Play around and changed reference
to master
and version to any *
in "designmodo/Flat-UI": "*"
section. After that composer download package via git and update composer.lock
without problems. Should work for any github repos.
Working config:
{
"repositories": {
"flat-ui": {
"type": "package",
"package": {
"name": "designmodo/Flat-UI",
"version": "1.3.0",
"source": {
"url": "https://github.com/designmodo/Flat-UI",
"type": "git",
"reference": "master"
}
}
}
},
"require": {
"twbs/bootstrap-sass": "~3.2",
"designmodo/Flat-UI": "*"
},
}
https://getcomposer.org/doc/05-repositories.md