Search by

aisdk / google-agent-platform

aisdk

Official Google Cloud Agent Platform (Vertex AI) provider for the PHP AI SDK.

Package info

github.com/phpaisdk/google-agent-platform

pkg:composer/aisdk/google-agent-platform

Fund package maintenance!

Open Collective

Statistics

Installs: 13

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 1

v0.11.0 2026-10-31 02:58 UTC

This package is auto-updated.

Last update: 2026-11-03 18:54:54 UTC


README

Google Cloud Agent Platform (formerly Vertex AI) provider for the framework-agnostic PHP AI SDK. Supports text, images, speech, embeddings, video, and live sessions.

Installation

composer require aisdk/google-agent-platform

Set GOOGLE_VERTEX_PROJECT, GOOGLE_VERTEX_LOCATION, and GOOGLE_VERTEX_ACCESS_TOKEN in your environment. Service account credentials are also supported.

Usage

use AiSdk\Generate;
use AiSdk\GoogleAgentPlatform;

$result = Generate::text('Explain closures in PHP in one sentence.')
    ->model(GoogleAgentPlatform::model('google/gemini-3.8-flash'))
    ->run();

echo $result->text;

The existing GOOGLE_VERTEX_* environment names remain supported.

Documentation

Read the documentation for configuration, supported features, and more examples.

Contributing ยท Support

License

The MIT License (MIT). See LICENSE for details.