Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rpurinton/gemini-php
A PHP Library for Google Gemini AI
https://github.com/rpurinton/gemini-php
ai chatbot client composer gemini google llm open-source php
Last synced: 1 day ago
JSON representation
A PHP Library for Google Gemini AI
- Host: GitHub
- URL: https://github.com/rpurinton/gemini-php
- Owner: rpurinton
- License: mit
- Created: 2023-12-14T04:23:03.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-10-11T12:37:18.000Z (30 days ago)
- Last Synced: 2024-10-11T13:21:03.119Z (30 days ago)
- Topics: ai, chatbot, client, composer, gemini, google, llm, open-source, php
- Language: PHP
- Homepage: https://discord.gg/U9stSmpEYr
- Size: 91.8 KB
- Stars: 20
- Watchers: 2
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: docs/contributing.md
- License: LICENSE
Awesome Lists containing this project
- Awesome-Google-Gemini-AI - Gemini PHP Library
README
# Gemini PHP
Gemini PHP is a PHP library for interacting with the Gemini AI platform. It provides a client for making requests to the Gemini API and a response class for handling the API responses.
## Prerequisites
PHP 8.2+
Composer- Create a Google Cloud Project if you don't already have one.
- Add the Vertex AI API to your project.
- Create a Service Account in your project with Basic permissions.
- Add an API Key and download the credentials JSON.
- Save your credentials somewhere like /home/you/.google/myproject.json
## InstallationTo install Gemini PHP, you can use Composer. Run the following command:
```bash
composer require rpurinton/gemini-php
```## Usage
Please see [example.php](example.php) for a basic command-line example.
## Table of Contents
- [Project Documentation](docs/README.md)
- [Introduction](docs/introduction.md)
- [Installation](docs/installation.md)
- [Getting Started](docs/getting-started.md)
- [Configuration](docs/configuration.md)
- [Usage Examples](docs/usage-examples.md)
- [API Reference](docs/api-reference.md)
- [Troubleshooting](docs/troubleshooting.md)
- [FAQ](docs/faq.md)
- [Contributing](docs/contributing.md)
- [License](docs/license.md)For more detailed usage instructions, please refer to the [Gemini PHP documentation](docs).
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.