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
其他信息
- 授权协议: MIT
- 更新时间: 2024-05-05