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(3mo ago)47467↓50%2[4 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 1mo ago

READMEChangelog (7)Dependencies (14)Versions (12)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

47

—

FairBetter than 94% of packages

Maintenance85

Actively maintained with recent releases

Popularity28

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity50

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

91d 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-data

Create unified resources and data transfer objects

1.8k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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