Welcome to Software development kit for R6Stats API
using composer
composer require yzpeedro/r6-php-sdk
<?php
// get psr-4 autoload
require_once "vendor/autoload.php";
// get RainbowStats classes
use 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();
You can see more about in Documentation
If you are a tech lead or copyright owner of the R6Stats API and would like this repository removed, please contact me at: pedrocruzpessoa16@gmail.com