# Getting Started

Installation is quite easy.   You can simply grab the latest stable version via composer:

```bash
composer require r4nkt/r4nkt-php-sdk
```

The next step is to create an instance of the SDK's `R4nkt` object. 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.
* &#x20;`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 `R4nkt` object:

```php
$apiToken = 'lR8OsPu9q3VWm70zAA2irbUCWL';
$gameId = 'ABCD1234';

$r4nkt = new R4nkt\PhpSdk\R4nkt($apiToken, $gameId);
```

Once initiated, you can then begin to manage game resources.
