{"id":48834136,"url":"https://github.com/aysnc-labs/wordpress-php-ai-client-bedrock","last_synced_at":"2026-04-14T22:05:09.899Z","repository":{"id":350546554,"uuid":"1146477640","full_name":"Aysnc-Labs/wordpress-php-ai-client-bedrock","owner":"Aysnc-Labs","description":"AWS Bedrock provider for the WordPress PHP AI Client SDK.","archived":false,"fork":false,"pushed_at":"2026-01-31T08:20:55.000Z","size":53,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-10T22:15:50.548Z","etag":null,"topics":["ai","aws-bedrock","php","wordpress"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/aysnc/wordpress-php-ai-client-bedrock","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aysnc-Labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-31T06:39:26.000Z","updated_at":"2026-02-16T07:42:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Aysnc-Labs/wordpress-php-ai-client-bedrock","commit_stats":null,"previous_names":["aysnc-labs/wordpress-php-ai-client-bedrock"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Aysnc-Labs/wordpress-php-ai-client-bedrock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aysnc-Labs%2Fwordpress-php-ai-client-bedrock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aysnc-Labs%2Fwordpress-php-ai-client-bedrock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aysnc-Labs%2Fwordpress-php-ai-client-bedrock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aysnc-Labs%2Fwordpress-php-ai-client-bedrock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aysnc-Labs","download_url":"https://codeload.github.com/Aysnc-Labs/wordpress-php-ai-client-bedrock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aysnc-Labs%2Fwordpress-php-ai-client-bedrock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31817137,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","aws-bedrock","php","wordpress"],"created_at":"2026-04-14T22:04:33.911Z","updated_at":"2026-04-14T22:05:09.888Z","avatar_url":"https://github.com/Aysnc-Labs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP AI Client AWS Bedrock Provider\n\n![GitHub Actions](https://github.com/Aysnc-Labs/wordpress-php-ai-client-bedrock/actions/workflows/test.yml/badge.svg)\n![Maintenance](https://img.shields.io/badge/Actively%20Maintained-yes-green.svg)\n\nAWS Bedrock provider for the [WordPress PHP AI Client](https://github.com/WordPress/php-ai-client) SDK.\n\nThis package was [originally contributed](https://github.com/WordPress/php-ai-client/pull/181) to the core PHP AI Client repository. The WordPress team is [decoupling all providers](https://github.com/WordPress/php-ai-client/pull/181#issuecomment-2915891498) into standalone packages ahead of WordPress 7.0 core integration, so this provider is maintained here as an independent Composer library.\n\n## Requirements\n\n- PHP 8.3+\n- [wordpress/php-ai-client](https://github.com/WordPress/php-ai-client) ^0.4\n\n## Installation\n\n```bash\ncomposer require aysnc/wordpress-php-ai-client-bedrock\n```\n\n## Configuration\n\nSet the following environment variables:\n\n| Variable | Required | Description |\n|----------|----------|-------------|\n| `AWS_BEDROCK_API_KEY` | Yes | Bearer token for Bedrock API authentication |\n| `AWS_BEDROCK_REGION` | No | AWS region (defaults to `AWS_DEFAULT_REGION`, then `us-east-1`) |\n| `AWS_DEFAULT_REGION` | No | Fallback AWS region |\n\n## Usage\n\n### Register the Provider\n\n```php\nuse WordPress\\AiClient\\AiClient;\nuse Aysnc\\WordPress\\PhpAiClientBedrock\\AwsBedrockProvider;\n\nAiClient::defaultRegistry()-\u003eregisterProvider( AwsBedrockProvider::class );\n```\n\n### Generate Text\n\n```php\n$text = AiClient::prompt( 'Explain quantum computing in simple terms.' )\n    -\u003eusingModel( AwsBedrockProvider::model( 'anthropic.claude-3-5-sonnet-20241022-v2:0' ) )\n    -\u003eusingMaxTokens( 1000 )\n    -\u003egenerateText();\n\necho $text;\n```\n\n### Full Result with Metadata\n\n```php\n$result = AiClient::prompt( 'Explain quantum computing in simple terms.' )\n    -\u003eusingModel( AwsBedrockProvider::model( 'anthropic.claude-3-5-sonnet-20241022-v2:0' ) )\n    -\u003eusingMaxTokens( 1000 )\n    -\u003egenerateTextResult();\n\necho $result-\u003etoText();\necho $result-\u003egetTokenUsage()-\u003egetTotalTokens();\n```\n\n### With Configuration\n\n```php\n$result = AiClient::prompt( 'Hello' )\n    -\u003eusingModel( AwsBedrockProvider::model( 'anthropic.claude-3-5-sonnet-20241022-v2:0' ) )\n    -\u003eusingSystemInstruction( 'You are a helpful assistant.' )\n    -\u003eusingMaxTokens( 1000 )\n    -\u003eusingTemperature( 0.7 )\n    -\u003egenerateTextResult();\n```\n\n### Custom Region\n\nSet the `AWS_BEDROCK_REGION` environment variable, or fall back to `AWS_DEFAULT_REGION`:\n\n```bash\nexport AWS_BEDROCK_REGION=\"eu-west-1\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faysnc-labs%2Fwordpress-php-ai-client-bedrock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faysnc-labs%2Fwordpress-php-ai-client-bedrock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faysnc-labs%2Fwordpress-php-ai-client-bedrock/lists"}