Installation is quite easy. You can simply grab the latest stable version via composer:
composer require r4nkt/r4nkt-php-sdk
The next step is to create an instance of the SDK's
R4nktobject. Its constructor takes the following parameters:
string $apiToken(required) Your API token. If you don't have an API key yet, read up on the API authentication first first.
string $gameId(required) Your game ID.
GuzzleHttp\Client $client(optional) You can pass in your own client to use or allow the SDK to create and use its own.
Here is an example of how one can instantiate the
$apiToken = 'lR8OsPu9q3VWm70zAA2irbUCWL';
$gameId = 'ABCD1234';
$r4nkt = new R4nkt\PhpSdk\R4nkt($apiToken, $gameId);
Once initiated, you can then begin to manage game resources.