PHPackages                             driftgate/sdk-php - 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. [API Development](/categories/api)
4. /
5. driftgate/sdk-php

ActiveLibrary[API Development](/categories/api)

driftgate/sdk-php
=================

DriftGate canonical V4 envelope SDK

v0.1.0(2mo ago)00Apache-2.0PHPPHP &gt;=8.2

Since Mar 3Pushed 2mo agoCompare

[ Source](https://github.com/driftgate/sdk-php)[ Packagist](https://packagist.org/packages/driftgate/sdk-php)[ RSS](/packages/driftgate-sdk-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

DriftGate PHP SDK
=================

[](#driftgate-php-sdk)

Canonical V4 envelope SDK for PHP.

See canonical envelope docs: [`docs/sdk/response-envelope.md`](/Users/jordandavis/Documents/Code/DriftGateAI/driftgate-v4-sdk-wt/docs/sdk/response-envelope.md).

Install
-------

[](#install)

```
composer require driftgate/sdk-php:^0.1.0
```

Hello World (2 lines)
---------------------

[](#hello-world-2-lines)

```
$session = (new DriftGateClient('https://api.driftgate.ai'))->sessionStart(agent: 'refund-agent');
$session->execute(input: ['orderId' => '123']);
```

Full Example
------------

[](#full-example)

```
$client = new DriftGateClient('https://api.driftgate.ai', bearerToken: getenv('DRIFTGATE_TOKEN'));
$session = $client->sessionStart(
  agent: 'refund-agent',
  policy: ['ref' => 'refund', 'version' => '2026-02'],
  route: ['provider' => 'openai', 'model' => 'gpt-4.1-mini', 'region' => 'us-east-1'],
  risk: ['decision' => 'review']
);
$response = $session->execute(input: ['orderId' => '123']);
echo $response['meta']['requestId'] . PHP_EOL;
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance85

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

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

76d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cc92c1f30c2ea6a8b2320bcaeaa9de1911c28e39ec6ab4720c545d7ade4d0d7d?d=identicon)[driftgate](/maintainers/driftgate)

---

Top Contributors

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

---

Tags

sdkaigovernancedriftgate

### Embed Badge

![Health badge](/badges/driftgate-sdk-php/health.svg)

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

###  Alternatives

[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)

PHPackages © 2026

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