PHPackages                             madbox-99/filament-chat-widget - 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. madbox-99/filament-chat-widget

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

madbox-99/filament-chat-widget
==============================

Embeddable chat widget for Laravel with a Filament v5 admin panel. Drop a JS snippet into any HTML page (WordPress, static site, SPA) and manage conversations from Filament.

v0.3.6(1mo ago)0184MITPHPPHP ^8.3

Since Apr 20Pushed 1mo agoCompare

[ Source](https://github.com/MadBox-99/filament-chat-widget)[ Packagist](https://packagist.org/packages/madbox-99/filament-chat-widget)[ RSS](/packages/madbox-99-filament-chat-widget/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (5)Versions (13)Used By (0)

Filament Chat Widget
====================

[](#filament-chat-widget)

Embeddable live-chat widget for Laravel with a [Filament v5](https://filamentphp.com/) admin panel.

Drop a `` tag into any HTML page (WordPress, static site, SPA) and manage incoming conversations from your Filament admin.

Features
--------

[](#features)

- Filament v5 resources for widget configuration and conversation management
- Vanilla JS embed (no framework dependencies on the host page)
- Public JSON API for widget config, conversation start, polling, and message sending
- Pluggable multi-tenancy — works with `Team`, `Site`, `User`, or no tenant at all
- Rate-limited routes out of the box
- English and Hungarian translations included

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

[](#installation)

```
composer require madbox-99/filament-chat-widget
php artisan vendor:publish --tag=filament-chat-widget-config
php artisan migrate
```

The embeddable JS is served directly from the `vendor/` directory by a Laravel route (`/chat/embed.js`), so there is **no asset publish step**. New package versions propagate to already-embedded pages automatically via ETag revalidation.

Configuration
-------------

[](#configuration)

Set your tenant model in `config/filament-chat-widget.php`:

```
'tenant_model' => \App\Models\Team::class,
'tenant_foreign_key' => 'team_id',
'tenant_slug_column' => 'slug',
```

Register the plugin in your Filament panel provider:

```
use Madbox99\FilamentChatWidget\FilamentChatWidgetPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            FilamentChatWidgetPlugin::make(),
        ]);
}
```

Embed the widget
----------------

[](#embed-the-widget)

From the widget edit page in the Filament admin, copy the embed snippet:

```

```

Paste it just before the closing `` tag of any page.

Cross-origin (CORS)
-------------------

[](#cross-origin-cors)

The chat routes ship with CORS enabled by default for **all origins** (`*`), since the widget is designed to be embedded on third-party sites. To restrict which domains can talk to your chat API, edit `config/filament-chat-widget.php`:

```
'routes' => [
    'cors' => [
        'allowed_origins' => ['https://example.com', 'https://blog.example.com'],
    ],
],
```

The package routes deliberately **do not** use Laravel's `web` middleware group. They are stateless public JSON APIs, so session/CSRF middleware would break them. **You do not need to add CSRF exemptions** to `bootstrap/app.php`.

Custom tenant resolver
----------------------

[](#custom-tenant-resolver)

If the default Eloquent slug lookup isn't enough (e.g. domain-based resolution), implement `Madbox99\FilamentChatWidget\Contracts\ChatWidgetTenantResolver` and set:

```
'tenant_resolver' => \App\Support\MyTenantResolver::class,
```

License
-------

[](#license)

MIT

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance90

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community6

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

Total

12

Last Release

50d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/72586295?v=4)[Zoltán Tamás Szabó](/maintainers/MadBox-99)[@MadBox-99](https://github.com/MadBox-99)

---

Top Contributors

[![MadBox-99](https://avatars.githubusercontent.com/u/72586295?v=4)](https://github.com/MadBox-99 "MadBox-99 (12 commits)")

---

Tags

laravelwordpresschatfilamentfilament-pluginlivechatembeddablechat widget

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/madbox-99-filament-chat-widget/health.svg)

```
[![Health](https://phpackages.com/badges/madbox-99-filament-chat-widget/health.svg)](https://phpackages.com/packages/madbox-99-filament-chat-widget)
```

###  Alternatives

[wsmallnews/filament-nestedset

Filament nestedset tree builder powered by kalnoy/nestedset with Filament v4 and v5 support

196.5k14](/packages/wsmallnews-filament-nestedset)[ercogx/laravel-filament-starter-kit

This is a Filament v5 Starter Kit for Laravel 13, designed to accelerate the development of Filament-powered applications.

441.7k](/packages/ercogx-laravel-filament-starter-kit)

PHPackages © 2026

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