Skip to main content
The official PHP SDK is a pure-PHP client for the Orqex public API, with an optional Laravel integration.

Requirements

  • PHP 8.3+
  • ext-json
  • Guzzle 7.5+ (installed automatically), or any custom HTTP client

Install

composer require orqex/orchestrate-php

Configure

use Orqex\Orchestrate\OrchestrateClient;

// Simplest: just the secret key
$orqex = new OrchestrateClient('sk_live_xxx');

// Or full control
$orqex = new OrchestrateClient([
    'api_key'         => 'sk_live_xxx',
    'base_uri'        => 'https://api.orqex.com/v1',
    'timeout'         => 30.0,
    'connect_timeout' => 10.0,
    'max_retries'     => 2,
]);

Bring your own HTTP client

Inject a pre-configured Guzzle client or any HttpClientInterface implementation:
use GuzzleHttp\Client as GuzzleClient;

$orqex = new OrchestrateClient([
    'api_key'     => 'sk_live_xxx',
    'http_client' => new GuzzleClient([ /* options, middleware, proxy... */ ]),
]);

Next: Usage

Services, resources and error handling.