PUGX / badge-poser

The PHP badges, renders some badges for your readme with the packagist information.
https://poser.pugx.org
MIT License
476 stars 93 forks source link

Mix data with Github API : releases #162

Open smalot opened 7 years ago

smalot commented 7 years ago

Hi,

Thanks for you tool, it is very useful. It should awesome if you could use Github stats too. Indeed, when a project is packaged in ".phar", composer is not used, so download count is not incremented.

Is this case, only Github can provide such stat using for example this url: https://api.github.com/repos/smalot/carbon14/releases

We can add all assets download count, or only those of the latest release.

Thanks

liuggio commented 7 years ago

@smalot this is a good idea... how could be the implementation I mean which stat you'd add?

smalot commented 7 years ago

It could be interesting to have the total download of any asset and the total download of all assets of the current release.