Download the PHP package gameserverapp/php-api-wrapper without Composer
On this page you can find all versions of the php package gameserverapp/php-api-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gameserverapp/php-api-wrapper
More information about gameserverapp/php-api-wrapper
Files in gameserverapp/php-api-wrapper
Package php-api-wrapper
Short Description Official GameserverApp.com API wrapper
License MIT
Informations about the package php-api-wrapper
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: https://dash.gameserverapp.com/configure/api.
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. Certain features are not (yet) implemented.
Support
If you have any questions, please reach out to support@gameserverapp.com.
INSTALL
Via Composer
composer require gameserverapp/php-api-wrapper
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.
USAGE
Grab all the servers that have a website name, connected to your domain
Response example:
AVAILABLE METHODS
Domain
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
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
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
groupStat options:
- hours-played
- levels-gained
- xp-gained
User
userStat options:
- hours-played
- levels-gained
- xp-gained
Character
characterStat options:
- hours-played
- levels-gained
- xp-gained