# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.r4nkt.com/php-sdk/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
