Single file index.php.
Call it with the following GET parameters
owner
: github owner namerepo
: github repository namefield
: github field name ( for a list of fields see for example : https://api.github.com/repos/thipages/GitHubImage )textColor
: text color in hex (default : #ffffff)bgColor
: background color in hex (default : #000000)
If one of the parameter owner
or repo
or field
is incorrect, the image will contain "error" as text
in a readme github file for example
<img src="mysite.com/index.php?owner=thipages&repo=GitHubImage&field=description"/>
<img src="mysite.com/index.php?owner=thipages&repo=GitHubImage&field=created_at"/>