faiznurullah/gemini-php-unofficial 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

faiznurullah/gemini-php-unofficial

Composer 安装命令:

composer require faiznurullah/gemini-php-unofficial

包简介

package for integrated gemini AI with php projects

README 文档

README

this package is unofficial Gemini written in PHP.

Official documentation

For Documentation please check Gemini docs

Installation

Install this package with composer by following command:

composer require faiznurullah/gemini-php-unofficial

or add manually in your Composer.json file.

Usage

Laravel

on file .env you can add this configuration:

API_KEY_GEMINI = "GEMINI_API_KEY";

on file config/app.php you can add this configuration.

'providers' => [ 
    Faiznurullah\Gemini\GeminiServiceProvider::class,
],

Native

Initialize some required credentials. You can get credentials on your ai studio google account dashboard.

<?php

require_once 'location/gemini.php';
// API Key
$apikey = 'GEMINI_API_KEY';

Contributing

For any requests, bugs, or comments, please open an issue.

Installing Packages

Before you start to code, run this command to install all of the required packages. Make sure you have composer installed in your computer.

composer install

I hope you can enjoy and contribute to future development.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-05