承接 rpurinton/gemini-php 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rpurinton/gemini-php

最新稳定版本:0.2.6

Composer 安装命令:

composer require rpurinton/gemini-php

包简介

A PHP client for the Gemini API.

README 文档

README

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

Installation

To install Gemini PHP, you can use Composer. Run the following command:

composer require rpurinton/gemini-php

Usage

Please see example.php for a basic command-line example.

Table of Contents

For more detailed usage instructions, please refer to the Gemini PHP documentation.

License

This project is licensed under the MIT License. See the LICENSE file for details.

统计信息

  • 总下载量: 2.94k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 19
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 19
  • Watchers: 1
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-12-15