If you want to add your own git repo as a composer package you can use the code snippet below. The attributes you will need to replace with your own:
- name: you can name your package anything you want
- package type: documentation for the possible types; in our example the repo is a WordPress plugin
- source type: can be git or zip
- reference: read more about it
"repositories": [ { "type":"package", "package": { "name": "package-name", "version":"master", "type": "wordpress-plugin", "source": { "type": "git", "url": "https://github.com/package-name.git", "reference":"master" } } } ], "require": { "package-name": "dev-master" }