PHPackages                             craigchilds/rls-api - 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. craigchilds/rls-api

ActiveLibrary[API Development](/categories/api)

craigchilds/rls-api
===================

Rocket League Stats PHP API

86[1 issues](https://github.com/CraigChilds94/rls-api-lib-php/issues)PHP

Since Apr 27Pushed 9y ago1 watchersCompare

[ Source](https://github.com/CraigChilds94/rls-api-lib-php)[ Packagist](https://packagist.org/packages/craigchilds/rls-api)[ RSS](/packages/craigchilds-rls-api/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

rls-api (PHP Implementation)
============================

[](#rls-api-php-implementation)

[![Build Status](https://camo.githubusercontent.com/ac7ce7a89cf5d0f812155a2cd439f2502e3a548afd105c22f0f09af5bd203037/68747470733a2f2f7472617669732d63692e6f72672f43726169674368696c647339342f726c732d6170692d6c69622d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/CraigChilds94/rls-api-lib-php)[![Codacy Badge](https://camo.githubusercontent.com/36e2820edae7ccaed5a619ea8b69862a44b9e71d6d252fc825ba298033d89ad1/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6431343431383962353065373432666161316138363463613363323232303530)](https://www.codacy.com/app/craigchilds94/rls-api-lib-php?utm_source=github.com&utm_medium=referral&utm_content=CraigChilds94/rls-api-lib-php&utm_campaign=Badge_Grade)

This is the un-official PHP client library for the RocketLeagueStats API.

### Installation

[](#installation)

```
composer require craigchilds/rls-api

```

### Usage

[](#usage)

Here are a few examples of how you can use the api to fetch different types of data.

##### Fetching a list of the playlists

[](#fetching-a-list-of-the-playlists)

```
use RocketLeagueStats\Stats as Api;

$api = new Api([
    'api_key' => 'your_api_key_here'
]);

$playlists = $api->playlists()->toCollection();
```

##### Fetching a player by platform &amp; name

[](#fetching-a-player-by-platform--name)

```
use RocketLeagueStats\Stats as Api;
use RocketLeagueStats\Data\Platform;

$api = new Api([
    'api_key' => 'your_api_key_here'
]);

$player = $api->player(Platform::PS4, 'PS4_UserNameHere');
```

##### Searching for a player on any platform

[](#searching-for-a-player-on-any-platform)

```
use RocketLeagueStats\Stats as Api;

$api = new Api([
    'api_key' => 'your_api_key_here'
]);

$results = $api->search('UserNameHere')->toCollection();
```

##### Environment Variables

[](#environment-variables)

If you want you can supply the api key through an environment variable. Lets say, if you had [DotEnv](https://github.com/vlucas/phpdotenv) installed on your project you could add the entry to your `.env` file.

```
RLS_API_KEY="rls_api_key_here"

```

And then you will not need to pass it in the constructor of the `RocketLeagueStats\Stats` class. Here is an example batch player request without passing the api key:

```
use RocketLeagueStats\Stats as Api;
use RocketLeagueStats\Data\Collection;

$api = new Api();

$players = new Collection([
    ['player' => 'UserName1', 'platform' => Platform::PS4],
    ['player' => 'UserName1', 'platform' => Platform::Steam],
]);

$allPlayers = $api->batch($players);
```

### Links

[](#links)

- [Example](https://github.com/CraigChilds94/rls-api-lib-php/blob/master/example.php)
- [API Documentation](http://documentation.rocketleaguestats.com/)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/660195?v=4)[Craig Childs](/maintainers/CraigChilds94)[@CraigChilds94](https://github.com/CraigChilds94)

---

Top Contributors

[![CraigChilds94](https://avatars.githubusercontent.com/u/660195?v=4)](https://github.com/CraigChilds94 "CraigChilds94 (27 commits)")

---

Tags

apiphprocket-league

### Embed Badge

![Health badge](/badges/craigchilds-rls-api/health.svg)

```
[![Health](https://phpackages.com/badges/craigchilds-rls-api/health.svg)](https://phpackages.com/packages/craigchilds-rls-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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