faiznurullah / gemini-php-unofficial
package for integrated gemini AI with php projects
Requires
- php: ^7.2 || ^8.0
- guzzlehttp/guzzle: ^7.8
- illuminate/support: ^6|^7|^8|^9|^10|^11
- phpoption/phpoption: ^1.9
- vlucas/phpdotenv: ^5.6
Requires (Dev)
- phpunit/phpunit: ^10.5
This package is auto-updated.
Last update: 2024-12-15 14:51:33 UTC
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.