Skip to content

loksland/hiscore-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HiScoreServer

A simple PHP highscore server for online games.

  • Supports multiple games.

getHiScores.php

Returns an ordered list of high scores for a game.

  • |game_slug| (String) Required. The identifier for the game. For multi-game setups.
  • |sleep| (Integer) Optional. The server will delay its response by |sleep| seconds. For simulating load times while developing your application.

saveScore.php

Attempts to add and rank score provided. Returns highscore list with new entry added, either ranked or unranked.

  • |game_slug| (String) Required. The identifier for the game. For multi-game setups.
  • |user_score| (Integer) Required.
  • |user_name| (String) Required.
  • |sleep| (Integer) Optional. The server will delay its response by |sleep| seconds. For simulating load times while developing your application.

About

A simple PHP highscore server for online games.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published