Download the PHP package wordpress/ai-provider-for-anthropic without Composer
On this page you can find all versions of the php package wordpress/ai-provider-for-anthropic. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wordpress/ai-provider-for-anthropic
More information about wordpress/ai-provider-for-anthropic
Files in wordpress/ai-provider-for-anthropic
Package ai-provider-for-anthropic
Short Description AI Provider for Anthropic for the PHP AI Client SDK. Works as both a Composer package and WordPress plugin.
License GPL-2.0-or-later
Homepage https://github.com/WordPress/ai-provider-for-anthropic
Informations about the package ai-provider-for-anthropic
AI Provider for Anthropic
An Anthropic (Claude) provider for the PHP AI Client SDK. Works as both a Composer package and a WordPress plugin.
Requirements
- PHP 7.4 or higher
- When using with WordPress, requires WordPress 7.0 or higher
- If using an older WordPress release, the wordpress/php-ai-client package must be installed
Installation
As a Composer Package
As a WordPress Plugin
- Download the plugin files
- Upload to
/wp-content/plugins/ai-provider-for-anthropic/ - Ensure the PHP AI Client plugin is installed and activated
- Activate the plugin through the WordPress admin
Usage
With WordPress
The provider automatically registers itself with the PHP AI Client on the init hook. Simply ensure both plugins are active and configure your API key:
As a Standalone Package
Supported Models
Available models are dynamically discovered from the Anthropic API. This includes Claude models for text generation with multimodal input support. See the Anthropic documentation for the full list of available models.
Configuration
The provider uses the ANTHROPIC_API_KEY environment variable for authentication. You can set this in your environment or via PHP:
License
GPL-2.0-or-later