PHPackages                             faiznurullah/gemini-php-unofficial - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. faiznurullah/gemini-php-unofficial

ActiveLibrary

faiznurullah/gemini-php-unofficial
==================================

package for integrated gemini AI with php projects

14[1 issues](https://github.com/Faiznurullah/gemini-php-unofficiall-package/issues)PHP

Since Jun 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Faiznurullah/gemini-php-unofficiall-package)[ Packagist](https://packagist.org/packages/faiznurullah/gemini-php-unofficial)[ RSS](/packages/faiznurullah-gemini-php-unofficial/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Gemini for php projects
=======================

[](#gemini-for-php-projects)

this package is unofficial Gemini written in PHP.

Official documentation
----------------------

[](#official-documentation)

For Documentation please check [Gemini docs](https://ai.google.dev/gemini-api/docs)

Installation
------------

[](#installation)

Install this package with composer by following command:

```
composer require faiznurullah/gemini-php-unofficial

```

or add manually in your `Composer.json` file.

Usage
-----

[](#usage)

### Laravel

[](#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

[](#native)

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

```
