PHP code example of gboquizosanchez / retroachievements
1. Go to this page and download the library: Download gboquizosanchez/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/ */
gboquizosanchez / retroachievements example snippets
use Retroachievements\RetroClient;
RetroClient::getGame(gameId: 1);
use Retroachievements\Data\AuthData;
use RetroAchievements\Models\RetroAchievements;
$auth = new AuthData(
username: 'your_username',
webApiKey: 'your_api_key',
);
$client = new RetroAchievements($auth);
$client->getGame(gameId: 1);
shell
php artisan vendor:publish --provider="RetroAchievements\RetroAchievementsServiceProvider"