PHPackages                             mmedia/le-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. mmedia/le-chat

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

mmedia/le-chat
==============

Add chat functionality to your Laravel application.

0.3.6(4mo ago)47473↓92.9%1[6 issues](https://github.com/M-Media-Group/le-chat/issues)[5 PRs](https://github.com/M-Media-Group/le-chat/pulls)MITPHPPHP ^8.4 || ^8.3CI passing

Since Jul 22Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/M-Media-Group/le-chat)[ Packagist](https://packagist.org/packages/mmedia/le-chat)[ Docs](https://github.com/mmedia/le-chat)[ GitHub Sponsors](https://github.com/Michal)[ RSS](/packages/mmedia-le-chat/feed)WikiDiscussions main Synced yesterday

READMEChangelog (8)Dependencies (14)Versions (13)Used By (0)

Le Chat
=======

[](#le-chat)

**Le Chat** adds rich, flexible chat functionality to your Laravel application with minimal setup and maximum customization. Whether you're building one-on-one messaging, group chatrooms, or bot integrations, this package gives you the tools to implement powerful conversations between any models in your app.

---

🚀 Features
----------

[](#-features)

- Send messages between any models
- One-to-one and multi-user chatrooms
- System messages and bot support
- Unread message tracking
- WebSocket connection detection
- Notifications via Laravel and WebPush
- REST API endpoints included
- No frontend views — bring your own UI

---

📦 Installation
--------------

[](#-installation)

```
composer require mmedia/le-chat
```

Publish migrations and config:

```
php artisan vendor:publish --tag="chat-migrations"
php artisan migrate

php artisan vendor:publish --tag="chat-config"
```

---

🧠 Core Concepts
---------------

[](#-core-concepts)

- `Chatroom`: A conversation space containing messages and participants
- `ChatParticipant`: A polymorphic link between your models and a chatroom
- `Message`: A message sent by a participant in a chatroom
- `IsChatParticipant` Trait: Add to any model to enable chat behavior

---

✅ Requirements
--------------

[](#-requirements)

- PHP 8.0+
- Laravel 11+

---

✨ Quick Example
---------------

[](#-quick-example)

```
$message = $user->sendMessageTo($otherUser, "Hello!");
$reply = $otherUser->sendMessageTo($user, "Hi back!");
```

Easily send messages to:

- Individual users
- Multiple recipients
- Entire chatrooms
- Non-model participants (bots, services, etc.)

---

🔥 Why Not Chatify?
------------------

[](#-why-not-chatify)

Unlike [Chatify](https://github.com/munafio/chatify), Le Chat **does not limit messages to one sender and one recipient**. This package supports:

- Multi-participant chatrooms
- Flexible polymorphic model support
- Bots and non-DB participants

---

📚 Full Documentation
--------------------

[](#-full-documentation)

See the complete usage guide for in-depth examples, APIs, and advanced features:

👉 [View Full Docs →](https://laravelchat.netlify.app/)

---

🧪 Comparison to Other Projects
------------------------------

[](#-comparison-to-other-projects)

- [Wirechat](https://github.com/namumakwembo/wirechat) — Livewire-heavy
- [Musonza Chat](https://github.com/musonza/chat) — Feature-rich but complex
- Le Chat — **Simple API, full flexibility, no view layer**

---

🙋‍♂️ Use Cases
--------------

[](#‍️-use-cases)

- Teacher ↔ Student chat (one-on-one)
- Teachers + Students group chats per class
- Chatbot ↔ User conversations
- Cross-platform relay (e.g. Slack integration)

---

📖 License
---------

[](#-license)

MIT ©

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance78

Regular maintenance activity

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.9% 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 ~29 days

Recently: every ~51 days

Total

8

Last Release

136d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30b6a50e70c3cb395a88a29d0eae972f46aa11c0e0aa5c6d4e14ea52012fa3f3?d=identicon)[mwargan](/maintainers/mwargan)

---

Top Contributors

[![mwargan](https://avatars.githubusercontent.com/u/13789481?v=4)](https://github.com/mwargan "mwargan (92 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

---

Tags

laravelMichalle-chat

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mmedia-le-chat/health.svg)

```
[![Health](https://phpackages.com/badges/mmedia-le-chat/health.svg)](https://phpackages.com/packages/mmedia-le-chat)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

199.4k](/packages/tarfin-labs-event-machine)[tapp/filament-form-builder

User facing form builder using Filament components

132.4k3](/packages/tapp-filament-form-builder)

PHPackages © 2026

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