composer.json, adds it to an index.
This is very similar to the behaviour of Packagist.org
UsageSimply include a composer.json in your project, all branches and tags respecting the formats for versions will be detected.
Only requirement is that the package
namemust be equal to the path of the project. i.e.:
my-group/my-project. This is not a design requirement, it is mostly to prevent common errors when you copy a
composer.jsonfrom another project without without changing its name.
CaveatsWhile your projects will be protected through SSH, they will be publicly listed. If you require protection of the package list, I suggest this reading.
Check out the code: https://github.com/wemakecustom/gitlab-composer !