Closed rugk closed 8 years ago
Can you reply a link to a composer.json example file on GitHub...
I think there are already many example files, but here you go:
I'm new to this composer...
composer.json
?Generally I'd recommend having a look here: https://getcomposer.org/doc/04-schema.md More details about the format you can also find here: https://packagist.org/
About your questions:
Is the file always called composer.json?
Yes.
What first-level key does this userscript has to look for? I couldn't find any of the supported keys.
I think you should look for require
and other "package links".
Which domain has to be used for linking?
AFAIK always packagist.org. E.g. you can find threema-msgapi-sdk-php
here.
Just note that no one requires you to publish your package to packagist.org. But honestly I don't know whether you can also publish it on other sites, but I don't think so.
BTW Composer is also on GitHub: https://github.com/composer
See https://getcomposer.org/, https://packagist.org/ and Wikipedia.