PHPackages                             traffic-orchestrator/laravel - 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/laravel

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

traffic-orchestrator/laravel
============================

Official Laravel integration for Traffic Orchestrator license validation

2.0.0(3mo ago)00MITPHPPHP ^8.1

Since Mar 28Pushed 3mo agoCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

traffic-orchestrator-laravel
============================

[](#traffic-orchestrator-laravel)

Official Laravel integration for [Traffic Orchestrator](https://trafficorchestrator.com).

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

Install
-------

[](#install)

```
composer require traffic-orchestrator/laravel
```

Configuration
-------------

[](#configuration)

```
php artisan vendor:publish --provider="TrafficOrchestrator\Laravel\ServiceProvider"
```

Set in `.env`:

```
TO_API_KEY=sk_live_xxxxx

```

Service Provider + Facade
-------------------------

[](#service-provider--facade)

```
// Auto-registered via package discovery. Use the facade:
use TrafficOrchestrator\Laravel\Facades\TO;

$result = TO::validateLicense($token, $domain);
```

Facade Methods
--------------

[](#facade-methods)

MethodAuthDescription`TO::validateLicense($token, $domain)`NoValidate a license key`TO::verifyOffline($token)`NoEd25519 offline verification`TO::listLicenses()`YesList all licenses`TO::createLicense($options)`YesCreate a new license`TO::rotateLicense($id)`YesRotate license key`TO::deleteLicense($id)`YesRevoke a license`TO::addDomain($id, $domain)`YesAdd domain to license`TO::removeDomain($id, $domain)`YesRemove domain from license`TO::getUsage()`YesGet usage statistics`TO::healthCheck()`NoCheck API healthMiddleware
----------

[](#middleware)

```
// routes/web.php
Route::middleware('license:pro')->group(function () {
    Route::get('/premium', [PremiumController::class, 'index']);
});
```

Register in `app/Http/Kernel.php`:

```
'license' => \TrafficOrchestrator\Laravel\Middleware\VerifyLicense::class,
```

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

[](#multi-environment)

```
# .env (Production)
TO_API_KEY=sk_live_xxxxx

# .env.staging
TO_API_KEY=sk_test_xxxxx
TO_API_URL=https://api-staging.trafficorchestrator.com/api/v1
```

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

[](#offline-verification-enterprise)

Validate licenses locally without API calls using Ed25519 JWT signatures:

```
// Add TO_PUBLIC_KEY to your .env
$result = TO::verifyOffline($licenseToken);
if ($result->valid) {
    echo "Plan: " . $result->planId;
}
```

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

[](#requirements)

- PHP 8.0+
- Laravel 9+

License
-------

[](#license)

MIT

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance82

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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

91d 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

laravellicensinglicense-validationtraffic-orchestrator

### Embed Badge

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

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

###  Alternatives

[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5742.2M17](/packages/directorytree-ldaprecord-laravel)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6753.6k5](/packages/hasinhayder-tyro)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1542.1k4](/packages/masterix21-laravel-licensing)

PHPackages © 2026

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