Compositor: agregando el repository de git sin composer.json

Intento agregar repository de github (designmodo / Flat-UI), jugar con config y get errores No valid composer.json was found in any branch or... , Your requirements could not be resolved to an installable set of packages. , The requested package designmodo/flat-ui could not be found in any version

Qué error cometí en config:

 "repositories": { "flat-ui": { "type": "package", "package": { "name": "designmodo/Flat-UI", "version": "1.3.0", // Don't know is it important? Where get this number in repo? "source": { "url": "https://github.com/designmodo/Flat-UI", "type": "git", "reference": "dev-master" // reference is branch name? } } } }, "require": { "twbs/bootstrap-sass": "~3.2", "designmodo/Flat-UI": "dev-master" // branch again (/minimum-stability?) }, 

En algún momento, el package de descarga del compositor pero el error de retorno (no sé cuándo lo hizo, busqué en la carpeta del proveedor y la carpeta designmodo estaba allí).

Problema resuelto. Juega y cambia la reference al master y la versión a cualquier * en la "designmodo/Flat-UI": "*" . Después de que el compositor descargue el package a través de git y actualice composer.lock sin problemas. Debería funcionar para cualquier repository de Github.

Configuración de trabajo:

 { "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

Solo funcionó para quitar la label, así:

 { "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": "*" }, }