I needed to link a GitHub hosted library into my project with composer. It was my own fork of a library that was abandoned. I didn’t want to register it with packagist.com because it already is infested with weeds of this kind. Conveniently, the library already had composer.json so I just needed to edit my project’s composer.json and link to the library. Easy I thought.