Skip to content

Rainbow Six Siege Software development kit for R6Stats API

License

Notifications You must be signed in to change notification settings

yzPeedro/R6-php-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

R6Stats - PHP SDK

Welcome to Software development kit for R6Stats API

Installation

using composer

composer require yzpeedro/r6-php-sdk

Basic Usage

<?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();

Documentation

You can see more about in Documentation

Disclaimer

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