A Simple PHP library to interact with ScoreSaber's API
Via Composer
$ composer require krikrixs/php-scoresaber-api
// Create the object
$ScoreSaberAPI = new ScoreSaberAPI("ApplicationName");
// Functions
// $sortBy values: 0 = Trending (Doesn't seems to work) | 1 = Ranked date | 2 = Numbers of scores set | 3 = Star rating | 4 = Author
$ScoreSaberAPI->getMaps((bool)$rankedOnly, (int)$sortBy, (int)$limit, not required (string)$mapName); // Get Map
$ScoreSaberAPI->getGlobalLeaderboards((int)$page); // Get Global Leaderboards
$ScoreSaberAPI->getPlayerInfos((string)$playerId, (bool)$wantFullInfo); // Get basic or full player's infos
$ScoreSaberAPI->getPlayerScores((string)$playerId, (bool)$wantTopScores, (int)$page); // Get recent or top player's scores
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please contact me on discord OMDN | Krixs#1106 or by email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.