PHPackages                             twopoint0/reverb-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. twopoint0/reverb-chat

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

twopoint0/reverb-chat
=====================

Realtime chat package using Laravel Reverb

v1.0.0(2mo ago)18↓100%MITPHPPHP ^8.2

Since Apr 10Pushed 2mo agoCompare

[ Source](https://github.com/PronayBormon/reverb-chat)[ Packagist](https://packagist.org/packages/twopoint0/reverb-chat)[ RSS](/packages/twopoint0-reverb-chat/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Laravel Reverb Chat Package
===========================

[](#laravel-reverb-chat-package)

A modular, real-time chat package for Laravel powered by **Laravel Reverb**.

---

Features
--------

[](#features)

- 💬 Private &amp; Group Chat
- ⚡ Real-time messaging (WebSocket)
- 📎 File attachments
- 🌐 API + Web UI
- 🧱 Clean and scalable architecture
- 🔌 Easy integration with any Laravel app

---

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

[](#installation)

### 1. Install via Composer

[](#1-install-via-composer)

```
composer require twopoint0/reverb-chat
```

---

### 2. Publish Config

[](#2-publish-config)

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

---

### 3. Run Migration

[](#3-run-migration)

```
php artisan migrate
```

---

### 4. Install Laravel Reverb (Required)

[](#4-install-laravel-reverb-required)

```
composer require laravel/reverb
php artisan reverb:install
```

---

### 5. Configure `.env`

[](#5-configure-env)

```
BROADCAST_DRIVER=reverb

REVERB_APP_ID=local
REVERB_APP_KEY=your_key
REVERB_APP_SECRET=your_secret
REVERB_HOST=127.0.0.1
REVERB_PORT=8080
REVERB_SCHEME=http
```

---

### 6. Run Services

[](#6-run-services)

```
php artisan reverb:start
php artisan queue:work
```

---

⚙️ Configuration
----------------

[](#️-configuration)

```
return [
    'user_model' => App\Models\User::class,
    'user_table' => 'users',
    'api_prefix' => 'api/reverb-chat',
];
```

---

🌐 Routes
--------

[](#-routes)

### 📡 API Routes

[](#-api-routes)

Base URL:

```
http://127.0.0.1:8000/api

```

MethodEndpointDescriptionPOST/open-groupCreate or open private chatPOST/{chat}/messageSend message using chat IDPOST/user/{user}/messageSend message to userGET/messages/{chat\_id}Get chat messagesGET/messages/user/{user\_id}Get messages with userGET/listGet chat list---

### 🌐 Web Routes

[](#-web-routes)

Base URL:

```
http://127.0.0.1:8000

```

MethodEndpointDescriptionGET/messageChat home pagePOST/chatroomOpen chat roomPOST/send-messageSend message---

💬 API Usage
-----------

[](#-api-usage)

### 🔹 Open or Create Chat

[](#-open-or-create-chat)

```
POST /api/chat/open-group
```

```
{
  "user_id": 2
}
```

---

### 🔹 Send Message (Chat ID)

[](#-send-message-chat-id)

```
POST /api/chat/{chat_id}/message
```

```
{
  "message": "Hello"
}
```

---

### 🔹 Send Message (User)

[](#-send-message-user)

```
POST /api/chat/user/{user_id}/message
```

---

### 🔹 Get Messages

[](#-get-messages)

```
GET /api/chat/messages/{chat_id}
```

---

### 🔹 Chat List

[](#-chat-list)

```
GET /api/chat/list
```

---

⚡ Realtime Example
------------------

[](#-realtime-example)

```
window.Echo.channel('chat.1')
    .listen('sendMessage', (e) => {
        console.log(e.message);
    });
```

---

🧱 Database Tables
-----------------

[](#-database-tables)

- chats
- chat\_messages
- chat\_users
- chat\_message\_attachments

---

🛠 Requirements
--------------

[](#-requirements)

- PHP &gt;= 8.2
- Laravel 11 / 12 / 13
- Laravel Reverb

---

🔮 Upcoming Features
-------------------

[](#-upcoming-features)

- Typing indicator
- Seen / delivered system
- Online users (presence)
- Notifications
- Multi-tenant support

---

🤝 Contributing
--------------

[](#-contributing)

Pull requests are welcome. Feel free to improve this package.

---

📄 License
---------

[](#-license)

MIT License

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance88

Actively maintained with recent releases

Popularity8

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

Unknown

Total

1

Last Release

60d ago

### Community

Maintainers

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

---

Top Contributors

[![PronayBormon](https://avatars.githubusercontent.com/u/95539814?v=4)](https://github.com/PronayBormon "PronayBormon (2 commits)")

### Embed Badge

![Health badge](/badges/twopoint0-reverb-chat/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pipeline

The Illuminate Pipeline package.

9348.3M264](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10533.5M984](/packages/illuminate-pagination)[illuminate/redis

The Illuminate Redis package.

8314.4M356](/packages/illuminate-redis)[spatie/laravel-export

Create a static site bundle from a Laravel app

670139.5k6](/packages/spatie-laravel-export)

PHPackages © 2026

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