PHPackages                             yunusasuroglu/laravel-gemini-ai - 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. [API Development](/categories/api)
4. /
5. yunusasuroglu/laravel-gemini-ai

ActiveLibrary[API Development](/categories/api)

yunusasuroglu/laravel-gemini-ai
===============================

A package to interact with Gemini API without routes

v1.0(1y ago)122MITPHPPHP ^8.0

Since Dec 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/yunusasuroglu/laravel-gemini-ai)[ Packagist](https://packagist.org/packages/yunusasuroglu/laravel-gemini-ai)[ RSS](/packages/yunusasuroglu-laravel-gemini-ai/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Gemini AI Package
=========================

[](#laravel-gemini-ai-package)

This is a Laravel package to interact with Google's Gemini AI API. It allows you to send text to the API and receive the generated content in return.

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

[](#installation)

To install the package, run the following Composer command in your Laravel project:

```
composer require yunusasuroglu/laravel-gemini-ai
```

Controller
----------

[](#controller)

```
$geminiService = new GeminiService();
$text = "The text to be sent to the API will come here";
$apiKey = env('GEMINI_API_KEY');

try {
    $result = $geminiService->create($text, $apiKey);
    echo $result['text']; // Prints the response returned by the API to the screen
} catch (\Exception $e) {
    echo 'Error: ' . $e->getMessage();
}
```

Requirements
------------

[](#requirements)

- PHP 8.0 or above
- Composer

Contribute
----------

[](#contribute)

1. Fork this project.
2. Create a new feature branch (`feature/feature-adi`).
3. Commit your changes (`git commit -m 'New feature added'`).
4. Push the branch to master (`git push origin feature/feature-adi`).
5. Open a Pull Request.

Licence
-------

[](#licence)

This project is licensed under the [MIT License](LICENSE).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance40

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

507d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/393d0290d15c183203b4582b6cfccc19aea7a7dd2e08b3642c247a2b1903834b?d=identicon)[yunusasuroglu](/maintainers/yunusasuroglu)

---

Top Contributors

[![yunusasuroglu](https://avatars.githubusercontent.com/u/171315583?v=4)](https://github.com/yunusasuroglu "yunusasuroglu (10 commits)")

### Embed Badge

![Health badge](/badges/yunusasuroglu-laravel-gemini-ai/health.svg)

```
[![Health](https://phpackages.com/badges/yunusasuroglu-laravel-gemini-ai/health.svg)](https://phpackages.com/packages/yunusasuroglu-laravel-gemini-ai)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
