PHP code example of yzpeedro / r6-php-sdk
1. Go to this page and download the library: Download yzpeedro/r6-php-sdk 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/ */
yzpeedro / r6-php-sdk example snippets
// get psr-4 autoload
se RainbowStats\RainbowStats\Auth\Authentication;
use RainbowStats\RainbowStats\Stats\Player;
// set yor API_KEY
$authentication = new Authentication('YOUR_API_KEY');
// get player object
$player = new Player($authentication, [
'username' => 'Mumiia661',
'platform' => 'pc'
]);
// get all player information
$all = $player->all();
// get player stats
$stats = $player->stats();
// get all player aliases
$aliases = $player->aliases();
// get player seasonal progression
$progression = $player->progression();
bash
composer