joestrong/retroachievements

RetroAchievements.org API wrapper

Installs: 20

Dependents: 0

Suggesters: 0

Security: 0

Stars: 7

Watchers: 2

Forks: 7

Open Issues: 10

pkg:composer/joestrong/retroachievements

0.3.0 2017-10-18 18:55 UTC

This package is not auto-updated.

Last update: 2025-10-12 09:02:22 UTC


README

Install with:

composer require joestrong/retroachievements

Use in a project:

require_once('../vendor/autoload.php');

use JoeStrong\RetroAchievements\RetroAchievements;

$ra = new RetroAchievements($username, $apiKey);
$users = $ra->getTopTenUsers();

foreach ($users as $user) {
    echo "$user->username<br>";
}

Methods

Auth with the API

$ra = new RetroAchievements($username, $apiKey);

Get the top 10 users

$ra->getTopTenUsers();

Get the consoles

$ra->getConsoles();

Get games for console

$ra->getGamesForConsole($consoleId);

Get game info

$ra->getGameInfo($gameId);

Contributing

See CONTRIBUTING.md