Skip to content

Repository files navigation

Octoryn PHP SDK

Governed model access for PHP 8.2 and later.

Install the tagged public release from Packagist:

composer require octoryn/sdk:^0.1
$client = new Octoryn\Client(getenv('OCTORYN_API_KEY'));
$result = $client->generateText([
    'model' => 'openai/gpt-4.1-mini',
    'prompt' => 'Explain this routing decision.',
]);

echo $result->octoryn->evidenceHash;

The SDK supports text generation, replayable SSE streams, split tool calls, raw JSON Schema validation for Structured Outputs, normalized API errors, cancellation and Octoryn governance metadata.

About

Official PHP SDK for the Octoryn governed AI Router

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages