jerone / UserScripts

🐵 My UserScripts
https://github.com/jerone/UserScripts#readme
GNU General Public License v3.0
342 stars 39 forks source link

(Github JSON Dependencies Linker) composer.json support #89

Closed rugk closed 8 years ago

rugk commented 8 years ago

See https://getcomposer.org/, https://packagist.org/ and Wikipedia.

jerone commented 8 years ago

Can you reply a link to a composer.json example file on GitHub...

rugk commented 8 years ago

I think there are already many example files, but here you go:

jerone commented 8 years ago

I'm new to this composer...

rugk commented 8 years ago

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