aanfarhan/laravel-chatbot

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

Maintainers

👁 omniglies

Package info

github.com/aanfarhan/laravel-chatbot

pkg:composer/aanfarhan/laravel-chatbot

Statistics

Installs: 37

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.5.3 2026-06-03 23:37 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 3d741d9f5d97ebc25eb5cc078c39c62286654874

  • Aan Farhan <abaz.nurfarhana.woop@gmail.com>

laravelsseaichatbotopenaillm


README

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

Requirements

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

Install

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

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');
<body>
 @yield('content')
 @chatbot
</body>

That's it. For everything else — channels, tool calling, client extractors, theming, GDPR, security, the full reference — see the documentation site.

Links

License

MIT