PHPackages                             r6api/client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. r6api/client

ActiveLibrary[API Development](/categories/api)

r6api/client
============

Client for the Rainbow 6 Siege stats API

1.1.0(7y ago)8225[3 issues](https://github.com/R6API/Client/issues)MITPHPPHP &gt;=7.1

Since Aug 23Pushed 7y ago2 watchersCompare

[ Source](https://github.com/R6API/Client)[ Packagist](https://packagist.org/packages/r6api/client)[ RSS](/packages/r6api-client/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (14)Versions (3)Used By (0)

R6API/Client
============

[](#r6apiclient)

[![Latest Stable Version](https://camo.githubusercontent.com/0e0d5321039dca01a58264e84a0b703e8ef967b8bb01aee4f15c15d37719b920/68747470733a2f2f706f7365722e707567782e6f72672f72366170692f636c69656e742f762f737461626c65)](https://packagist.org/packages/r6api/client)[![Maintainability](https://camo.githubusercontent.com/36d1966ed77a51512606b696c1e2e7d4704e1248d2af2bd57ca88624e1f48a82/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f36313733646334333837303630633538303335642f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/R6API/Client/maintainability)[![License](https://camo.githubusercontent.com/8689d882e86de90fcf0ca80643cbc3f9a20046fbaa9a12d728fd909e72545a57/68747470733a2f2f706f7365722e707567782e6f72672f72366170692f636c69656e742f6c6963656e7365)](https://packagist.org/packages/r6api/client)

Installation
------------

[](#installation)

You can install the library via [Composer](https://getcomposer.org/). Run the following command:

```
composer require r6api/client
```

This will install the client without the needed HTTP client. We suggest you to install:

- `php-http/curl-client` Simpler if you have no HTTP client on your project.
- `php-http/guzzle6-adapter` If you already use guzzle, I suggest you using this package.

To use the library, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

```
require_once __DIR__. '/vendor/autoload.php';
```

Getting Started
---------------

[](#getting-started)

Simple usage to get someone profile:

```
require_once __DIR__.'/vendor/autoload.php';

use R6API\Client\ClientBuilder;
use R6API\Client\Api\Type\PlatformType;

$builder = new ClientBuilder();
$builder->setCacheItemPool($cacheItemPool); // accept PSR-6 adapter (not mandatory)
$client = $builder->buildAuthenticated('%email%', '%password%');
```

Documentation
-------------

[](#documentation)

### Profile

[](#profile)

Look for profile of an user called `panda_______`

```
$profiles = $client->getProfileApi()->get(PlatformType::PC, 'panda_______');
```

ParametersValueChecks`$platform`Platform to look atCheck \\R6API\\Client\\Api\\Type\\PlatformType`$value`Value to searchNo real restrictions here`$key`Key to searchPossible values are: nameOnPlatform, idOnPlatform, userId`$profiles` will contains an array of `Profile` model:

```
class Profile
{
    /**
     * @var \Ramsey\Uuid\Uuid
     */
    public $profileId;

    /**
     * @var \Ramsey\Uuid\Uuid
     */
    public $userId;

    /**
     * @var string
     * @see \R6API\Client\Api\Type\PlatformType
     */
    public $platformType;

    /**
     * @var \Ramsey\Uuid\Uuid
     */
    public $idOnPlatform;

    /**
     * @var string
     */
    public $nameOnPlatform;
}
```

### Progression

[](#progression)

Progression for user we searched in Profile example:

```
$progressions = $client->getProgressionApi()->get(PlatformType::PC, ['575b8c76-a33a-4c19-9618-d14b9343d527']);
```

ParametersValueChecks`$platform`Platform to look atCheck \\R6API\\Client\\Api\\Type\\PlatformType`$profileIds`Profiles to searchSearch by `profileId`, each one should be UUID`$progressions` will contains an array of `Progression` model:

```
class Progression
{
    /**
     * @var int
     */
    public $xp;

    /**
     * @var Uuid
     */
    public $profileId;

    /**
     * @var int
     */
    public $lootboxProbability;

    /**
     * @var int
     */
    public $level;

    public function getLootboxProbabilityPercent(): float;
}
```

### Rank

[](#rank)

Rank for user we searched in Profile example:

```
$response = $client->getRankApi()->get(PlatformType::PC, RegionType::EUROPE, SeasonType::CURRENT, ['575b8c76-a33a-4c19-9618-d14b9343d527']);
```

ParametersValueChecks`$platform`Platform to look atCheck \\R6API\\Client\\Api\\Type\\PlatformType`$region`Region to filterCheck \\R6API\\Client\\Api\\Type\\RegionType`$season`Season to look atCheck \\R6API\\Client\\Api\\Type\\SeasonType`$profileIds`Profiles to searchSearch by `profileId`, each one should be UUID`$response` will contains an array of `Rank` model:

```
class Rank
{
    /**
     * @var string
     */
    public $boardId;

    /**
     * @var int
     */
    public $pastSeasonsAbandons;

    /**
     * @var \DateTime
     */
    public $updateTime;

    /**
     * @var float
     */
    public $skillMean;

    /**
     * @var int
     */
    public $abandons;

    /**
     * @var int
     */
    public $season;

    /**
     * @var string
     */
    public $region;

    /**
     * @var Uuid
     */
    public $profileId;

    /**
     * @var int
     */
    public $pastSeasonsLosses;

    /**
     * @var float
     */
    public $maxMmr;

    /**
     * @var float
     */
    public $mmr;

    /**
     * @var int
     */
    public $wins;

    /**
     * @var float
     */
    public $skillStdev;

    /**
     * @var int
     */
    public $rank;

    /**
     * @var int
     */
    public $losses;

    /**
     * @var int
     */
    public $nextRankMmr;

    /**
     * @var int
     */
    public $pastSeasonsWins;

    /**
     * @var int
     */
    public $previousRankMmr;

    /**
     * @var int
     */
    public $maxRank;

    public function getWinLosseRate(): float;
}
```

### Statistic

[](#statistic)

Statistic for user we searched in Profile example:

```
$statistics = [
    StatisticType::CASUAL_TIMEPLAYED,
    StatisticType::CASUAL_MATCHPLAYED,
    StatisticType::CASUAL_MATCHWON,
    StatisticType::CASUAL_MATCHLOSTS,
    StatisticType::CASUAL_KILLS,
    StatisticType::CASUAL_DEATH
];

$response = $client->getStatisticApi()->get(PlatformType::PC, ['575b8c76-a33a-4c19-9618-d14b9343d527'], $statistics);
```

ParametersValueChecks`$platform`Platform to look atCheck \\R6API\\Client\\Api\\Type\\PlatformType`$profileIds`Profiles to searchSearch by `profileId`, each one should be UUID`$statistics`Statistic to filterCheck \\R6API\\Client\\Api\\Type\\StatisticType, this is an array`$response` will contains an array of `Statistic` model:

```
class Statistic
{
    /**
     * @var Uuid
     */
    public $profileId;

    /**
     * @var array
     */
    public $statistics;
}

```

Understand that `$statistics` array will contains all responses with `StatisticType` as key and corresponding value as value ;)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~77 days

Total

2

Last Release

2744d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/944409?v=4)[Baptiste Leduc](/maintainers/Korbeil)[@Korbeil](https://github.com/Korbeil)

---

Top Contributors

[![Korbeil](https://avatars.githubusercontent.com/u/944409?v=4)](https://github.com/Korbeil "Korbeil (62 commits)")[![stygiansabyss](https://avatars.githubusercontent.com/u/4187442?v=4)](https://github.com/stygiansabyss "stygiansabyss (3 commits)")[![RiiD](https://avatars.githubusercontent.com/u/4520267?v=4)](https://github.com/RiiD "RiiD (1 commits)")

---

Tags

clientr6sr6statsubisoft

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/r6api-client/health.svg)

```
[![Health](https://phpackages.com/badges/r6api-client/health.svg)](https://phpackages.com/packages/r6api-client)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[apigee/apigee-client-php

Client library for connecting to the Apigee Edge API.

27558.7k3](/packages/apigee-apigee-client-php)[brd6/notion-sdk-php

Notion SDK for PHP

5918.0k](/packages/brd6-notion-sdk-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
