PHP code example of joestrong / retroachievements
1. Go to this page and download the library: Download joestrong/retroachievements library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
joestrong / retroachievements example snippets
use JoeStrong\RetroAchievements\RetroAchievements;
$ra = new RetroAchievements($username, $apiKey);
$users = $ra->getTopTenUsers();
foreach ($users as $user) {
echo "$user->username<br>";
}