Concept - Hopps/Open-Leaderboards GitHub Wiki

This is only a draft. The concept may change!

With OpenLeaderboards you'll be given the possibility to add your own (global) leaderboards to your games with an easy to use API. The only requirement to host it is a decent webserver with PHP & MySQL access.

Which data is going to be saved?

Default: Username - Score The Admin can edit/remove/add columns, so he can easily customize it.

Example: Name - Time needed - Times clicked - Score

How is the data read?

The data is saved using a (MySQL) database, which can be accessed like this:

www.domain.com/openleaderboards/list/[secret key string]/[all/week/day]

which returns a JSON array:

It can then be included in your game!

you can also access a html formatted version of your leaderboard via

www.domain.com/openleaderboards/list/[gamename]

which is fully customizable.

How is the data saved?

Just call this: www.domain.com/openleaderboards/add/[secret key string]/[COLUMN 1]/[COLUMN 2]

{maybe using a hashing method?} The data is only added when it is better than the last one on the list!

How much data is saved?

The Admin can choose how much will be saved (Top 10, Top 100, Top 125?) and he can also choose if he wants to use different time leaderboards (Last 24 hours, Last 7 days, Last year, all?)