PHPackages                             vercel-labs/ai-gateway-provider - 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. vercel-labs/ai-gateway-provider

ActiveLibrary[API Development](/categories/api)

vercel-labs/ai-gateway-provider
===============================

Vercel AI Gateway provider for the PHP AI Client SDK. Works as a Composer package and WordPress plugin.

1.0.0(2w ago)1204[2 PRs](https://github.com/vercel-labs/ai-gateway-provider-php/pulls)MITPHPPHP &gt;=7.4CI passing

Since May 13Pushed 6d agoCompare

[ Source](https://github.com/vercel-labs/ai-gateway-provider-php)[ Packagist](https://packagist.org/packages/vercel-labs/ai-gateway-provider)[ Docs](https://github.com/vercel-labs/ai-gateway-provider-php)[ RSS](/packages/vercel-labs-ai-gateway-provider/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (10)Versions (4)Used By (0)

Vercel AI Gateway Provider
==========================

[](#vercel-ai-gateway-provider)

Vercel AI Gateway provider for the [PHP AI Client](https://github.com/WordPress/php-ai-client) SDK. Works as a [Composer package](https://packagist.org/packages/vercel-labs/ai-gateway-provider) and [WordPress plugin](https://wordpress.org/plugins/vercel-ai-gateway-provider/).

The Vercel AI Gateway allows you to use hundreds of generative AI models from over 40 different providers, to generate text, images, video, and more.

Installation
------------

[](#installation)

### As a Composer Package

[](#as-a-composer-package)

Make sure you're using `WordPress/php-ai-client` 1.3.0 or higher.

```
composer require vercel-labs/ai-gateway-provider
```

### As a WordPress Plugin

[](#as-a-wordpress-plugin)

Make sure you're using WordPress 7.0 or higher.

#### Installation from within WordPress

[](#installation-from-within-wordpress)

1. Visit **Plugins &gt; Add New**.
2. Search for **Vercel AI Gateway**, then install and activate the AI Gateway Provider plugin.
3. Visit **Settings &gt; Connectors** and paste your AI Gateway API key.

#### Manual installation

[](#manual-installation)

1. Upload the entire `vercel-ai-gateway-provider` folder to the `/wp-content/plugins/` directory.
2. Visit **Plugins**, and activate the Vercel AI Gateway Provider plugin.
3. Visit **Settings &gt; Connectors** and paste your AI Gateway API key.

Usage
-----

[](#usage)

### With WordPress

[](#with-wordpress)

The provider automatically registers itself with the PHP AI Client on the `init` hook. Simply configure the API key under **Settings &gt; Connectors**, and you can start using all the models via the AI Gateway.

```
// Use the provider
$result = wp_ai_client_prompt( 'Hello, world!' )
    ->using_provider( 'ai_gateway' )
    ->generate_text_result();
```

See [docs/wordpress.md](docs/wordpress.md) for more examples.

### As a Standalone Package

[](#as-a-standalone-package)

```
use WordPress\AiClient\AiClient;
use Vercel\AiGatewayProvider\Provider\AiGatewayProvider;

// Register the provider
$registry = AiClient::defaultRegistry();
$registry->registerProvider(AiGatewayProvider::class);

// Set your API key
putenv('AI_GATEWAY_API_KEY=your-api-key');

// Generate text
$result = AiClient::prompt('Explain quantum computing')
    ->usingProvider('ai_gateway')
    ->generateTextResult();

echo $result->toText();
```

See [docs/php.md](docs/php.md) for more examples.

License
-------

[](#license)

MIT

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance98

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 98.1% 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

Every ~7 days

Total

2

Last Release

20d ago

### Community

Maintainers

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

---

Top Contributors

[![felixarntz](https://avatars.githubusercontent.com/u/3531426?v=4)](https://github.com/felixarntz "felixarntz (104 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

wordpressaigatewayllmvercel

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/vercel-labs-ai-gateway-provider/health.svg)

```
[![Health](https://phpackages.com/badges/vercel-labs-ai-gateway-provider/health.svg)](https://phpackages.com/packages/vercel-labs-ai-gateway-provider)
```

###  Alternatives

[wordpress/wp-ai-client

An AI client and API for WordPress to communicate with any generative AI models of various capabilities using a uniform API.

12421.8k3](/packages/wordpress-wp-ai-client)[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.

46684.5k5](/packages/deepseek-php-deepseek-php-client)[neuron-core/neuron-laravel

Official Neuron AI Laravel SDK.

11025.7k](/packages/neuron-core-neuron-laravel)[vectorifyai/vectorify-laravel

Vectorify package for Laravel. The fastest way to ask AI about your data.

196.1k](/packages/vectorifyai-vectorify-laravel)

PHPackages © 2026

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