LMBishop / emblems

Create dynamic badges for services that shields.io doesn't offer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Modifications to original source

  • Removed non-downloads endpoints
  • Removed bukkit
  • Added polymart
  • Merged all endpoints into one (/all/downloads)

Original README is preserved below.


emblems

This is a simple shields.io wrapper that provides additional services. I created it to add a few new features to shields.io that I wanted and figured I would share. It is hosted on Heroku.

Parameters

  • cache: Modifies the 'Cache-Control' header with the amount of time in seconds the image should be cached for. The default is 120 seconds
  • color: The color of the badge. The default is blue.
  • name: The text that appears on the left half of the badge. The default for this parameter varies

Each service has unique parameters but these three are global

Services

Bukkit and Spigot Downloads

This badge displays the total amount of downloads on both Spigot and BukkitDev. It has two extra parameters, 'bukkit' which represents the plugin's BukkitDev ID and 'spigot' which represents the plugin's Spigot ID. Here is an example for PingAPI.

http://badge.henrya.org/spigotbukkit/downloads?spigot=3829&bukkit=89296&color=red

Bukkit Downloads

This badge displays the amount of downloads a specific plugin has on BukkitDev. It only has one extra parameter, 'id' which represents the plugin's BukkitDev ID. Here is an example for PingAPI.

http://badge.henrya.org/bukkit/downloads?id=89296&color=green

Spigot

All of these services have the parameter, 'id' which represents the plugin's Spigot ID.

Downloads

This displays the amount of downloads a specific plugin has on Spigot. Here is an example for PingAPI.

http://badge.henrya.org/spigot/downloads?id=3829

Version

This displays the current version of a plugin. It does not work with premium plugins since you must be logged in to view them. Here is an example for PingAPI.

http://badge.henrya.org/spigot/version?id=3829

About

Create dynamic badges for services that shields.io doesn't offer


Languages

Language:PHP 97.0%Language:Dockerfile 3.0%