PHPackages                             bdowson/simple-gemini - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. bdowson/simple-gemini

ActiveLibrary[API Development](/categories/api)

bdowson/simple-gemini
=====================

A lightweight PHP package to send prompts to Google's Gemini AI and retrieve responses.

v1.0.0(1y ago)010MITPHPPHP ^8.0

Since Feb 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/bdowson/simple-gemini)[ Packagist](https://packagist.org/packages/bdowson/simple-gemini)[ RSS](/packages/bdowson-simple-gemini/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (2)Used By (0)

Simple Gemini
=============

[](#simple-gemini)

**Simple Gemini** is a lightweight PHP package that lets you send prompts to Google's Gemini AI and retrieve generated responses. It handles authentication using your Google service account credentials and makes API calls to the Google Cloud AI Platform.

> **Note:** You must have a valid Google service account JSON file with the necessary permissions and your Google Cloud project must be properly configured.

---

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Configuration](#configuration)
- [To Dos](#todo)
- [License](#license)
- [Support](#support)

---

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require bdowson/simple-gemini
```

---

Usage
-----

[](#usage)

Below is a simple example to get you started:

```
