PHP API client for interacting with the Gemini AI API
Top 89.3% on sourcepulse
This PHP client library provides a community-maintained interface for interacting with the Google Gemini AI API. It enables PHP developers to integrate advanced AI capabilities, including text generation, image understanding, and text embeddings, into their applications.
How It Works
The client leverages PSR-18 for HTTP client compatibility, allowing flexibility in choosing underlying HTTP libraries like Guzzle. It abstracts the complexities of API requests, offering a fluent interface for model selection, parameter configuration, and handling responses, including streaming. The library supports both text-only and multimodal inputs (text and images).
Quick Start & Requirements
composer require google-gemini-php/client
composer require google-gemini-php/client:1.0.4-beta
Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The README notes that the gemini-pro-vision
model is not yet optimized for multi-turn conversations. Users should verify the license for commercial use implications.
3 weeks ago
1 day