PHPackages                             gameserverapp/php-api-wrapper - 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. gameserverapp/php-api-wrapper

ActiveLibrary[API Development](/categories/api)

gameserverapp/php-api-wrapper
=============================

Official GameserverApp.com API wrapper

0.1(6y ago)3112MITPHPPHP &gt;=5.4CI failing

Since Dec 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/GameserverApp/PHP-API-Wrapper)[ Packagist](https://packagist.org/packages/gameserverapp/php-api-wrapper)[ RSS](/packages/gameserverapp-php-api-wrapper/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

The API Wrapper can be used to quickly load data from the GameserverApp.com API. You can connect with the API using your `Client ID` and `Client Secret`, which can be found on your API page: .

The API is rate-limited, meaning you can only make so many calls per minute. If you make more calls, your API keys can be (temporarily) disabled. Please keep this in mind when designing your application. For example, save the data you fetch from the API to a database or cache the output for a certain time.

This API wrapper allows you to do anything that is available on the [Community website](https://github.com/GameserverApp/community-website). Certain features are not (yet) implemented.

Support
-------

[](#support)

If you have any questions, please reach out to .

INSTALL
-------

[](#install)

**Via Composer**

`composer require gameserverapp/php-api-wrapper`

```
require 'vendor/autoload.php';
$api = new GameserverApp\ApiWrapper\GSAClient('','');
```

**Without Composer**

As an alternative you can include the API wrapper in your current website. Please copy/paste the code in the file `` into your project. After that make sure to include the file in your code.

```
include('path/to/GSAClient.php');
$api = new GSAClient('','');
```

USAGE
-----

[](#usage)

Grab all the servers that have a website name, connected to your domain

```
$api->servers();
```

Response example:

```
[
  {
    "id":132056,
    "name":"RUST",
    "cluster_name":"Self-hosted cluster",
    "selfhosted":0,
    "p2p":0,
    "twitch_sub_only":false,
    "app_id":"252490",
    "game":{
      "name":"RUST",
      "icon":"http:\/\/dash.gameserverapp.com\/img\/games\/rust.png",
      "steam":{
        "client_id":"252490",
        "server_id":"258550"
      },
      "support":{
        "delivery":false,
        "level":false,
        "gender":false
      }
    }
  }
]
```

AVAILABLE METHODS
-----------------

[](#available-methods)

### Domain

[](#domain)

```
$api->domainSettings();

$api->domainStat('hours-played');
```

domainStat options:

- hours-played (graph)
- online-players (graph)
- new-characters (graph)
- online-count-last-7-days (graph)
- hours-played-last-7-days (graph)
- new-players-last-7-days (graph)
- active-tribes (group objects)
- newbies (character objects)
- top-players (character objects)
- last-online (character object)

### Cluster

[](#cluster)

```
$api->clusterStat('newbies');
```

clusterStat options:

- online-count-last-7-days (graph)
- hours-played-last-7-days (graph)
- new-players-last-7-days (graph)
- active-tribes (group objects)
- newbies (character objects)
- top-players (character objects)
- last-online (character object)

### Server

[](#server)

```
$api->serverStat(132056, 'top-players');

$api->servers();
```

serverStat options:

- online-count-last-7-days (graph)
- hours-played-last-7-days (graph)
- new-players-last-7-days (graph)
- active-tribes (group objects)
- newbies (character objects)
- top-players (character objects)
- last-online (character object)

### Group

[](#group)

```
$api->group('00c666f6-d521-47ce-88f9-6ca36451bda0');
$api->groupStat('00c666f6-d521-47ce-88f9-6ca36451bda0', 'hours-played');

$api->groups();
```

groupStat options:

- hours-played
- levels-gained
- xp-gained

### User

[](#user)

```
$api->user('6c4de76f-3df4-4b75-85a0-b4557c3f3564');
$api->userStat('6c4de76f-3df4-4b75-85a0-b4557c3f3564', 'levels-gained');

$api->users();
```

userStat options:

- hours-played
- levels-gained
- xp-gained

### Character

[](#character)

```
$api->character('d1f6e8d1-0265-43ad-947e-c6bebe3343ee');
$api->characterStat('d1f6e8d1-0265-43ad-947e-c6bebe3343ee', 'xp-gained');

$api->characters();
$api->topCharacters();
$api->freshCharacters();
$api->onlineCharacters();
$api->spotlightCharacters();
```

characterStat options:

- hours-played
- levels-gained
- xp-gained

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

2358d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13402423?v=4)[Max Vaessen](/maintainers/mvaessen)[@mvaessen](https://github.com/mvaessen)

---

Top Contributors

[![mvaessen](https://avatars.githubusercontent.com/u/13402423?v=4)](https://github.com/mvaessen "mvaessen (3 commits)")[![TDodgeCo](https://avatars.githubusercontent.com/u/21989168?v=4)](https://github.com/TDodgeCo "TDodgeCo (1 commits)")

---

Tags

apiwrapperGameserverApp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gameserverapp-php-api-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/gameserverapp-php-api-wrapper/health.svg)](https://phpackages.com/packages/gameserverapp-php-api-wrapper)
```

###  Alternatives

[gabrielbull/ups-api

PHP UPS API

4642.4M10](/packages/gabrielbull-ups-api)[wtfzdotnet/php-tmdb-api

PHP wrapper for TMDB (TheMovieDatabase) API v3. Supports two types of approaches, one modelled with repositories, models and factories. And the other by simple array access to RAW data from The Movie Database.

4252.9k](/packages/wtfzdotnet-php-tmdb-api)[walle89/swedbank-json

Unofficial API client for the Swedbank's and Sparbanken's mobile apps in Sweden.

752.5k](/packages/walle89-swedbank-json)

PHPackages © 2026

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