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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wordpress-php-ai-client-bedrock

PHP AI Client AWS Bedrock Provider

GitHub Actions Maintenance

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

Note: Do not add wordpress/php-ai-client to your project's composer.json when running WordPress 7.0+. WordPress 7.0 ships the same WordPress\AiClient namespace 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:


All versions of wordpress-php-ai-client-bedrock with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package aysnc/wordpress-php-ai-client-bedrock contains the following files

Loading the files please wait ...