vers/sdk

Orchestrator Control Plane API - PHP SDK

Maintainers

Package info

github.com/hdresearch/php-sdk

pkg:composer/vers/sdk

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-04-22 06:37 UTC

This package is not auto-updated.

Last update: 2026-04-22 18:15:40 UTC


README

vers-sdk v0.1.8

It is generated with Sterling.

Requirements

  • PHP >= 8.1
  • ext-curl
  • ext-json

Installation

composer require vers/sdk

Usage

<?php

require_once 'vendor/autoload.php';

use VersSdk\VersSdkClient;

$client = new VersSdkClient(
    apiKey: 'your-api-key',
);

// Example: call an API operation
// $result = $client->operationName();

Configuration

Option Description Default
baseUrl API base URL https://api.vers.sh
apiKey Bearer token for auth VERS_API_KEY env var
maxRetries Maximum retry attempts 2
timeout Request timeout (seconds) 30.0

Error Handling

use VersSdk\ApiException;
use VersSdk\NotFoundException;

try {
    $result = $client->someOperation();
} catch (NotFoundException $e) {
    echo "Not found: " . $e->getMessage();
} catch (ApiException $e) {
    echo "API error ({$e->status}): " . $e->getMessage();
}

License

MIT