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

# Installation

> Install the package and instantiate the client.

<Steps>
  <Step title="Install via Composer">
    ```bash theme={null}
    composer require andreia/php-sdk-dolby-api
    ```
  </Step>

  <Step title="Get an API token">
    Grab an API token from your [Dolby.io dashboard](https://dashboard.dolby.io/).
  </Step>

  <Step title="Instantiate the client">
    ```php theme={null}
    use DolbyApi\DolbyApi;

    $dolbyApi = new DolbyApi('your-api-token');
    ```
  </Step>
</Steps>

## Calling an API

Every request goes through `->api('media')`, which returns the Media API resource:

```php theme={null}
$dolbyApi->api('media')->enhance(
    'https://dolbyio.s3-us-west-1.amazonaws.com/public/shelby/tunnel.original.mp4',
    'dlb://example_out'
);
```

<Note>
  Only `'media'` is a valid argument to `->api()` right now — see [Usage](/php/dolby-api-sdk/usage) for everything the Media API resource supports.
</Note>

Next: see [Usage](/php/dolby-api-sdk/usage) for every available method, or jump straight to the [Enhance API](/php/dolby-api-sdk/usage#enhance-api).
