Download the PHP package aysnc/wordpress-php-ai-client-bedrock without Composer
On this page you can find all versions of the php package aysnc/wordpress-php-ai-client-bedrock. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aysnc/wordpress-php-ai-client-bedrock
More information about aysnc/wordpress-php-ai-client-bedrock
Files in aysnc/wordpress-php-ai-client-bedrock
Package wordpress-php-ai-client-bedrock
Short Description AWS Bedrock provider for the WordPress PHP AI Client SDK.
License MIT
Informations about the package wordpress-php-ai-client-bedrock
PHP AI Client AWS Bedrock Provider
AWS Bedrock provider for the WordPress PHP AI Client framework, which ships in WordPress core as of WordPress 7.0.
This package was originally contributed to the core PHP AI Client repository. The WordPress team is decoupling all providers into standalone packages ahead of WordPress 7.0 core integration, so this provider is maintained here as an independent Composer library.
Requirements
- PHP 8.3+
- WordPress 7.0+ (provides the
WordPress\AiClientframework in core)
Note: Do not add
wordpress/php-ai-clientto your project'scomposer.jsonwhen running WordPress 7.0+. WordPress 7.0 ships the sameWordPress\AiClientnamespace in core — having both present causes a fatal class declaration conflict on boot.
Installation
Configuration
Set the following environment variables:
| Variable | Required | Description |
|---|---|---|
AWS_BEDROCK_API_KEY |
Yes | Bearer token for Bedrock API authentication |
AWS_BEDROCK_REGION |
No | AWS region (defaults to AWS_DEFAULT_REGION, then us-east-1) |
AWS_DEFAULT_REGION |
No | Fallback AWS region |
Usage
Register the Provider
Generate Text
Full Result with Metadata
With Configuration
Custom Region
Set the AWS_BEDROCK_REGION environment variable, or fall back to AWS_DEFAULT_REGION: