> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dojah.io/llms.txt
> Use this file to discover all available pages before exploring further.

# PHP

> Call the Dojah REST API from PHP with the konfig/dojah-php-sdk client, which wraps authentication and every endpoint group.

Call the Dojah REST API from PHP with the `konfig/dojah-php-sdk` client. It wraps authentication and every endpoint group.

<Warning>
  This is a **server-side** client using your **secret** key (passed as `Authorization`) — never ship it in client code. For verification UI in an app, use a [Widget SDK](/api-reference/widget-sdks/choosing-an-sdk).
</Warning>

## Install

```bash Terminal theme={null}
composer require konfig/dojah-php-sdk
```

## Make a request

Initialize the client with your secret key and App ID, then call any endpoint group:

```php verify.php theme={null}
$dojah = new \Dojah\Client(
    Authorization: getenv("DOJAH_SECRET_KEY"),
    AppId: getenv("DOJAH_APP_ID"),
);

$result = $dojah->aML->getScreeningInfo(profile_id: "WC7117469");
```

Every endpoint in the [API reference](/api-reference/get-started/introduction) is exposed on the client, grouped by API (e.g. `kyc`, `aML`, `kyb`).
