PHPackages                             aanfarhan/laravel-chatbot - 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. aanfarhan/laravel-chatbot

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

aanfarhan/laravel-chatbot
=========================

Context-aware chatbot package for Laravel: signed page context, OpenAI-compatible LLMs, streaming SSE, GDPR-friendly persistence.

v1.5.1(1w ago)028MITPHPPHP ^8.2CI failing

Since May 15Pushed 6d agoCompare

[ Source](https://github.com/aanfarhan/laravel-chatbot)[ Packagist](https://packagist.org/packages/aanfarhan/laravel-chatbot)[ RSS](/packages/aanfarhan-laravel-chatbot/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (48)Versions (28)Used By (0)

Laravel AI Chatbot Widget
=========================

[](#laravel-ai-chatbot-widget)

A Composer package that drops a context-aware chatbox onto any Laravel page. Declare what data the chat should see in your controller; the package handles signing, streaming, persistence, tool calling, and the frontend widget.

**📚 Full documentation: [aanfarhan.github.io/laravel-chatbot](https://aanfarhan.github.io/laravel-chatbot)**

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

[](#requirements)

- PHP 8.2+
- Laravel 11 or 12
- An OpenAI-compatible LLM provider (OpenAI, Azure, OpenRouter, Groq, Ollama, etc.)

Install
-------

[](#install)

```
composer require aanfarhan/laravel-chatbot
php artisan chatbot:install
```

Use
---

[](#use)

```
use Aanfarhan\Chatbot\Facades\Chatbot;

Route::get('/orders/{order}', function (Order $order) {
    Chatbot::context(['order' => new OrderResource($order)]);

    return view('orders.show', compact('order'));
})->name('orders.show');
```

```

    @yield('content')
    @chatbot

```

That's it. For everything else — channels, tool calling, client extractors, theming, GDPR, security, the full reference — see the **[documentation site](https://aanfarhan.github.io/laravel-chatbot)**.

Links
-----

[](#links)

- 📘 [Documentation](https://aanfarhan.github.io/laravel-chatbot)
- 🔒 [Security &amp; threat model](https://aanfarhan.github.io/laravel-chatbot/guide/security)
- 📝 [Architecture decisions](https://aanfarhan.github.io/laravel-chatbot/decisions/)
- 🐛 [Issues](https://github.com/aanfarhan/laravel-chatbot/issues)
- 📦 [Packagist](https://packagist.org/packages/aanfarhan/laravel-chatbot)

License
-------

[](#license)

MIT

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance98

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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 ~0 days

Total

27

Last Release

8d ago

PHP version history (2 changes)v1.0.0PHP ^8.3

v1.4.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![aanfarhan](https://avatars.githubusercontent.com/u/19621476?v=4)](https://github.com/aanfarhan "aanfarhan (97 commits)")

---

Tags

laravelaiopenaissechatbotllm

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/aanfarhan-laravel-chatbot/health.svg)

```
[![Health](https://phpackages.com/badges/aanfarhan-laravel-chatbot/health.svg)](https://phpackages.com/packages/aanfarhan-laravel-chatbot)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

76318.2M110](/packages/laravel-mcp)[spatie/laravel-export

Create a static site bundle from a Laravel app

670139.5k6](/packages/spatie-laravel-export)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9732.3M121](/packages/roots-acorn)[laravel/cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.

268880.7k3](/packages/laravel-cashier-paddle)[api-platform/laravel

API Platform support for Laravel

59156.3k10](/packages/api-platform-laravel)

PHPackages © 2026

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