Download the PHP package bert-w/runescape-hiscores-api without Composer
On this page you can find all versions of the php package bert-w/runescape-hiscores-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package runescape-hiscores-api
bert-w/runescape-hiscores-api
A PHP implementation to request player data in a nice format from:
- OSRS Hiscores https://secure.runescape.com/m=hiscore_oldschool/overall
- RS3 Hiscores https://secure.runescape.com/m=hiscore/ranking
Installation instructions
composer require bert-w/runescape-hiscores-api
Code Samples
Retrieving player data
Note: It is important to define a user-agent as seen below, since the RuneScape website might throw errors if none is given.
Get total level
Get all skills or minigames
Results in the following array:
Get a specific skill / minigame
All properties on this HiscoreRow
object are:
$player->get('agility')->icon
(string|null)- URL to a skill icon that is also found on the hiscores page (like ).
$player->get('agility')->name
(string)- Name of the skill or minigame as shown on the hiscores ("Agility", "Defence", "Runecraft")
$player->get('agility')->rank
(int) {- Global ranking of this users' skill or minigame.
$player->get('agility')->level
(int|null)- Level of the skill (
null
for minigames).
- Level of the skill (
$player->get('agility')->experience
(int|null)- Total experience of the skill (always
null
for minigames).
- Total experience of the skill (always
$player->get('agility')->score
(int|null)- Total score of the minigame (always
null
for skills).
- Total score of the minigame (always
List of OSRS skills
List of RS3 skills
All versions of runescape-hiscores-api with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2|^8.0
ext-json Version *
guzzlehttp/guzzle Version ^6.0|^7.0
symfony/dom-crawler Version ^5.0
ext-json Version *
guzzlehttp/guzzle Version ^6.0|^7.0
symfony/dom-crawler Version ^5.0
The package bert-w/runescape-hiscores-api contains the following files
Loading the files please wait ....