PHPackages                             dougkusanagi/laravel-ai-chat - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. dougkusanagi/laravel-ai-chat

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dougkusanagi/laravel-ai-chat
============================

A Laravel AI Chat package with database integration

0.1.22(1y ago)143MITPHPPHP ^8.1

Since Nov 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dougkusanagi/laravel-ai-chat-package)[ Packagist](https://packagist.org/packages/dougkusanagi/laravel-ai-chat)[ Docs](https://github.com/dougkusanagi/laravel-ai-chat)[ RSS](/packages/dougkusanagi-laravel-ai-chat/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (20)Used By (0)

Laravel AI Chat
===============

[](#laravel-ai-chat)

[![Example](example.png)](example.png)

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

[](#installation)

```
composer require dougkusanagi/laravel-ai-chat
php artisan vendor:publish --tag=ai-chat-config
php artisan vendor:publish --tag=ai-chat-assets
php artisan vendor:publish --tag=ai-chat-views
```

Set your Gemini API key in your .env file:

```
GEMINI_API_KEY=your_api_key_here
```

Add to layout
-------------

[](#add-to-layout)

1. Add the required scripts to your layout file (`app.blade.php` or similar). Make sure to add them in this exact order:

```

```

2. Make sure you have Tailwind CSS installed and configured in your application.
3. The chat component will appear as a floating button in the bottom-right corner of your page.

Customization
-------------

[](#customization)

You can customize the views by publishing them:

```
php artisan vendor:publish --tag=ai-chat-views
```

The views will be published to `resources/views/vendor/ai-chat/components/`.

If you want to add ai-chat to filament php
------------------------------------------

[](#if-you-want-to-add-ai-chat-to-filament-php)

Add this following code to AdminPanelProvider.php

```
// Makes tailwind classes being compiled
->viteTheme('resources/css/app.css')
// Add assets
->assets([
    Js::make('ai-chat-js', asset('vendor/ai-chat/js/ai-chat.js')),
])
// Add blade components
->renderHook(
    PanelsRenderHook::BODY_END,
    function () {
        if (auth()->check()) {
            return view('vendor.ai-chat.components.ai-floating-chat');
        }
    }
)
```

Todo
----

[](#todo)

- Implement GeminiProvider
- Add the ability to execute constructive queries (create, update)
- Implement OpenAiProvider
- Implement AnthropicProvider

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance44

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Every ~5 days

Total

19

Last Release

442d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d2919ac9e3739cc058348b4c1072008b0ef0bc22d095863c8eb46bcef9d2e381?d=identicon)[dougkusanagi](/maintainers/dougkusanagi)

---

Top Contributors

[![dougkusanagi](https://avatars.githubusercontent.com/u/4421025?v=4)](https://github.com/dougkusanagi "dougkusanagi (44 commits)")

### Embed Badge

![Health badge](/badges/dougkusanagi-laravel-ai-chat/health.svg)

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

###  Alternatives

[guava/calendar

Adds support for vkurko/calendar to Filament PHP.

298241.0k3](/packages/guava-calendar)[tonysm/rich-text-laravel

Integrates Trix content with Laravel

46577.8k1](/packages/tonysm-rich-text-laravel)[mauricius/laravel-htmx

Laravel helper library for Htmx

364101.1k1](/packages/mauricius-laravel-htmx)[illuminate/reflection

The Illuminate Reflection package.

361.6M3](/packages/illuminate-reflection)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[spatie/laravel-screenshot

Take screenshots of web pages in Laravel apps

7615.9k2](/packages/spatie-laravel-screenshot)

PHPackages © 2026

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