PHPackages                             bradvin/wp-ai-client-streaming - 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. bradvin/wp-ai-client-streaming

ActiveLibrary[API Development](/categories/api)

bradvin/wp-ai-client-streaming
==============================

WordPress AI streaming adapter package that mirrors WordPress 7 AI integration patterns.

v1.0.0(2mo ago)250GPL-2.0-or-laterPHPPHP &gt;=7.4

Since Apr 18Pushed 2mo agoCompare

[ Source](https://github.com/bradvin/wp-ai-client-streaming)[ Packagist](https://packagist.org/packages/bradvin/wp-ai-client-streaming)[ Docs](https://github.com/bradvin/wp-ai-client-streaming)[ RSS](/packages/bradvin-wp-ai-client-streaming/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (5)Used By (0)

WP AI Client Streaming
======================

[](#wp-ai-client-streaming)

`bradvin/wp-ai-client-streaming` is a WordPress 7 streaming adapter package designed to read like a small extension of core’s AI client layer.

It exposes core-style `WP_AI_*` classes and helper functions. When multiple plugins bundle the package, its global loader keeps a single active copy and loads the newest registered package version.

If you are reviewing the package for upstream WordPress use, start with:

- `docs/core-review-notes.md`
- `docs/integration-guide.md`

Install
-------

[](#install)

```
composer require bradvin/wp-ai-client-streaming:^1.0
```

Demo Plugin
-----------

[](#demo-plugin)

If you want a working wrapper plugin and demo UI for this package, see:

- `https://github.com/bradvin/wp-stream`

Bootstrap
---------

[](#bootstrap)

Initialize the discovery strategy after plugins have loaded:

```
add_action(
	'plugins_loaded',
	static function (): void {
		if ( wp_ai_client_streaming_load() ) {
			WP_AI_Client_Streaming_Discovery_Strategy::init();
		}
	},
	PHP_INT_MAX
);
```

The package registers itself through `WP_AI_Client_Streaming_Package_Loader` as Composer autoloads each bundled copy. Actual adapter classes are loaded later from the newest registered version, so direct class access should happen on or after `plugins_loaded`.

Usage
-----

[](#usage)

Use the streaming-aware prompt helper directly:

```
$result = wp_ai_client_stream_prompt(
	$prompt_messages,
	array(
		'streaming_enabled' => true,
	)
)
	->using_model_config( $model_config )
	->generate_result();
```

Or wrap an existing core prompt builder:

```
$builder = wp_ai_client_prompt( $prompt_messages )->using_model_config( $model_config );
$result  = wp_ai_client_stream( $builder, array( 'streaming_enabled' => true ) )->generate_result();
```

For transport diagnostics against the default registry, call:

```
$diagnostics = WP_AI_Client_Streaming_Transport_Diagnostics::get_default_registry_diagnostics();
```

License
-------

[](#license)

`bradvin/wp-ai-client-streaming` is licensed under `GPL-2.0-or-later`.

Publishing
----------

[](#publishing)

The latest tagged release for this package is `v1.0.0`.

For the publish checklist, see `docs/publishing.md`.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance88

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

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

Every ~11 days

Total

4

Last Release

61d ago

Major Versions

v0.1.2 → v1.0.02026-05-24

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1409490?v=4)[Brad Vincent](/maintainers/bradvin)[@bradvin](https://github.com/bradvin)

---

Top Contributors

[![bradvin](https://avatars.githubusercontent.com/u/1409490?v=4)](https://github.com/bradvin "bradvin (20 commits)")

---

Tags

composerwordpressaistreamingwp-ai-client

### Embed Badge

![Health badge](/badges/bradvin-wp-ai-client-streaming/health.svg)

```
[![Health](https://phpackages.com/badges/bradvin-wp-ai-client-streaming/health.svg)](https://phpackages.com/packages/bradvin-wp-ai-client-streaming)
```

###  Alternatives

[wordpress/mcp-adapter

Adapter for Abilities API, letting WordPress abilities to be used as MCP tools, resources or prompts

887184.7k8](/packages/wordpress-mcp-adapter)[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

74331.3k1](/packages/mozex-anthropic-laravel)[mozex/anthropic-php

PHP client for the Anthropic API: messages, streaming, tool use, thinking, web search, code execution, batches, and more.

49552.5k18](/packages/mozex-anthropic-php)[sybrew/the-seo-framework

An automated, advanced, accessible, unbranded and extremely fast SEO solution for any WordPress website.

47884.4k](/packages/sybrew-the-seo-framework)[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.

11723.9k3](/packages/wordpress-wp-ai-client)[alle-ai/anthropic-api-php

The go-to PHP library for the Anthropic API — Messages, streaming, tool use, vision, prompt caching, extended thinking, MCP, Files, Batches. Maintained by Alle-AI.

2626.6k](/packages/alle-ai-anthropic-api-php)

PHPackages © 2026

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