PHPackages                             traffic-orchestrator/sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. traffic-orchestrator/sdk

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

traffic-orchestrator/sdk
========================

Traffic Orchestrator License Validation SDK for PHP

1.0.0(1mo ago)00MITPHPPHP &gt;=8.0

Since Mar 28Pushed 1mo agoCompare

[ Source](https://github.com/traffic-orchestrator/php-sdk)[ Packagist](https://packagist.org/packages/traffic-orchestrator/sdk)[ Docs](https://trafficorchestrator.com/docs/sdks/php)[ RSS](/packages/traffic-orchestrator-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

traffic-orchestrator-php
========================

[](#traffic-orchestrator-php)

Official PHP SDK for [Traffic Orchestrator](https://trafficorchestrator.com) — license validation, management, and analytics.

📖 [API Reference](https://trafficorchestrator.com/docs#api) · [SDK Guides](https://trafficorchestrator.com/docs/sdk/php) · [OpenAPI Spec](https://api.trafficorchestrator.com/api/v1/openapi.json)

Install
-------

[](#install)

```
composer require traffic-orchestrator/sdk
```

Quick Start
-----------

[](#quick-start)

```
use TrafficOrchestrator\Client;

$to = new Client();
$result = $to->validateLicense('LK-xxxx', 'example.com');

if ($result->valid) {
    echo "Plan: " . $result->planId;
}
```

Authenticated Usage
-------------------

[](#authenticated-usage)

```
$to = new Client(['apiKey' => getenv('TO_API_KEY')]);
$licenses = $to->listLicenses();
```

API Methods
-----------

[](#api-methods)

### Core License Operations

[](#core-license-operations)

MethodAuthDescription`validateLicense($token, $domain)`NoValidate a license key`verifyOffline($token, $publicKey, $domain)`NoEd25519 offline verification`listLicenses()`YesList all licenses`createLicense($options)`YesCreate a new license`rotateLicense($licenseId)`YesRotate license key`deleteLicense($licenseId)`YesRevoke a license`getUsage()`YesGet usage statistics`getAnalytics($days)`YesGet detailed analytics`healthCheck()`NoCheck API health### Portal &amp; Enterprise Methods

[](#portal--enterprise-methods)

MethodAuthDescription`addDomain($licenseId, $domain)`YesAdd domain to license`removeDomain($licenseId, $domain)`YesRemove domain from license`getDomains($licenseId)`YesGet license domains`updateLicenseStatus($id, $status)`YesSuspend/reactivate license`listApiKeys()`YesList API keys`createApiKey($name, $scopes)`YesCreate API key`deleteApiKey($keyId)`YesDelete API key`getDashboard()`YesFull dashboard overviewRetry (Guzzle Middleware)
-------------------------

[](#retry-guzzle-middleware)

```
$to = new Client([
    'apiKey' => getenv('TO_API_KEY'),
    'timeout' => 5,
    'retries' => 3,  // Retry on 5xx with backoff
]);
```

Multi-Environment
-----------------

[](#multi-environment)

```
// Production (default)
$to = new Client(['apiKey' => getenv('TO_API_KEY')]);

// Staging
$to = new Client([
    'apiKey' => getenv('TO_API_KEY_DEV'),
    'apiUrl' => 'https://api-staging.trafficorchestrator.com/api/v1',
]);
```

Offline Verification (Enterprise)
---------------------------------

[](#offline-verification-enterprise)

Validate licenses locally without API calls using Ed25519 JWT signatures:

```
$to = new Client([
    'publicKey' => getenv('TO_PUBLIC_KEY'),
]);
$result = $to->verifyOffline($licenseToken);
if ($result->valid) {
    echo "Plan: " . $result->planId;
}
```

Requirements
------------

[](#requirements)

- PHP 8.0+
- Guzzle 7.x

License
-------

[](#license)

MIT

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance90

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

46d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b3a130c2d41d01dd0ec4038d1360c1a546c3b611b47c16238bc65599d796c3b?d=identicon)[traffic-orchestrator](/maintainers/traffic-orchestrator)

---

Top Contributors

[![Valansys](https://avatars.githubusercontent.com/u/211257780?v=4)](https://github.com/Valansys "Valansys (1 commits)")

---

Tags

sdkapi clientlicensinglicense-validationtraffic-orchestrator

### Embed Badge

![Health badge](/badges/traffic-orchestrator-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/traffic-orchestrator-sdk/health.svg)](https://phpackages.com/packages/traffic-orchestrator-sdk)
```

###  Alternatives

[happyr/linkedin-api-client

LinkedIn API client. Handles OAuth, CSRF protection. Easy to implement and extend. This is a standalone library for any composer project.

1991.6M12](/packages/happyr-linkedin-api-client)[symfonycorp/connect

SymfonyConnect SDK

9245.2k2](/packages/symfonycorp-connect)[surfoo/geocaching-php-sdk

Geocaching PHP SDK

143.4k1](/packages/surfoo-geocaching-php-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
