Skip to main content

PHP

PHP SDK

Modern PHP SDK with PSR-18 HTTP client support.

$composer require appneural/appneural-php
PSR-18 HTTP clientPSR-3 logger supportPHP 8.2+ compatibleNamed arguments supportEnum-based configurationGenerator-based streaming

Code

Get started in minutes.

initialization.php
use Appneural\Client;

$client = new Client([
    'api_key' => getenv('APPNEURAL_API_KEY'),
    'environment' => 'production',
]);

Configuration

SDK options.

OptionTypeDescription
api_keystringYour API key
environmentstringproduction | sandbox
timeoutintRequest timeout in seconds
max_retriesintMax retry attempts

Best Practices

Recommended patterns.

Use environment variables for secrets
Use named arguments for clarity
Implement proper exception handling
Use generators for streaming

Enterprise Intelligence

Get started with PHP SDK.

Modern PHP SDK with PSR-18 HTTP client support.

Scope and availability confirmed individually · Written terms define the engagement