# Google Gemini Integration for Laravel: Simple, Clean, and Lightweight

> Source: <https://dev.to/yasserelgammal/google-gemini-integration-for-laravel-simple-clean-and-lightweight-42ac>
> Published: 2026-06-17 20:53:50+00:00

**AI** is becoming a core part of modern applications, from content generation and chat experiences to intelligent assistants and automation.

For Laravel applications that only need Google Gemini, a lightweight and dedicated integration can provide a simpler developer experience.

"laravel-gemini" is a Laravel package that provides a clean way to interact with the Google Gemini API.

```
composer require yasser-elgammal/laravel-gemini
php
use YasserElgammal\LaravelGemini\Facades\Gemini;

$response = Gemini::generate('Explain Laravel service providers');
php
$response = Gemini::chat([
    [
        'role' => 'user',
        'content' => 'Hello Gemini',
    ],
]);
```

Check out the source code, documentation, and contribute to the project:

The package supports:

with PHP 8.1+.

Currently, the documentation is available through the README, covering the core usage and examples. More production-level examples and best practices will be added in future updates.

Feedback, issues, and contributions are always welcome. The goal is to make integrating Google Gemini into Laravel applications as simple and enjoyable as possible.
