PHPackages                             mahmoudkon/messenger - 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. mahmoudkon/messenger

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

mahmoudkon/messenger
====================

messenger chat

v8(3y ago)21451MITJavaScriptPHP ^8.0

Since Oct 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/MahmoudKon/messenger)[ Packagist](https://packagist.org/packages/mahmoudkon/messenger)[ RSS](/packages/mahmoudkon-messenger/feed)WikiDiscussions master Synced 1mo ago

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

Laravel Messenger

[](#laravel-messenger)

 [![Laravel Messenger](https://github.com/MahmoudKon/messenger/raw/master/src/assets/messenger/images/icon.png)](https://github.com/MahmoudKon/messenger/blob/master/src/assets/messenger/images/icon.png)

Requirements
============

[](#requirements)

- This messenger package requires PHP ^8.0 and laravel ^9.0, another version (7.0) for PHP &lt; 8.0.
- Install pusher server

```
    composer require pusher/pusher-php-server
```

- set pusher configuration in your env file.

```
    PUSHER_APP_ID=#########
    PUSHER_APP_KEY=#########
    PUSHER_APP_SECRET=#########
```

- Install laravel echo from [ laravel documentation ](https://laravel.com/docs/9.x/broadcasting#client-pusher-channels).

```
    npm install --save-dev laravel-echo pusher-js
```

- Make enable for client events from your pusher setting.

[![enable-client-events.PNG](https://github.com/MahmoudKon/messenger/raw/master/imgs/enable-client-events.PNG)](https://github.com/MahmoudKon/messenger/blob/master/imgs/enable-client-events.PNG)

Installation
============

[](#installation)

You can install this package via composer using:

```
    composer require mahmoudkon/messenger
```

For php &lt; 8

```
    composer require mahmoudkon/messenger:7.0
```

1- Use this trait in your `User.php` model

```
    ...
    use Illuminate\Foundation\Auth\User as Authenticatable;
    use Messenger\Chat\Traits\Messageable;

    class User extends Authenticatable
    {
        use Messageable;
    }
```

2- make publish for views and assets files

```
    php artisan vendor:publish --tag=messenger
```

can make publish for each file using

```
    php artisan vendor:publish --tag=messenger-config
    php artisan vendor:publish --tag=messenger-migrations
    php artisan vendor:publish --tag=messenger-assets
    php artisan vendor:publish --tag=messenger-views
```

3- run migrations:

```
    php artisan migrate
```

4- include `app.js` file in the messanger/index.blade.php:

for `mix`

```

```

for `vite`

```
    @vite(['resources/js/app.js'])
```

Note
====

[](#note)

please check configuration file if you have problem with display image

Features
========

[](#features)

1- Welcome page to list users and conversations

 [![wlecome page](https://github.com/MahmoudKon/messenger/raw/master/imgs/wlecome-page.PNG)](https://github.com/MahmoudKon/messenger/blob/master/imgs/wlecome-page.PNG)

2- profile for each user

 [![user profile](https://github.com/MahmoudKon/messenger/raw/master/imgs/profile.PNG)](https://github.com/MahmoudKon/messenger/blob/master/imgs/profile.PNG)

3- search in users

 [![search](https://github.com/MahmoudKon/messenger/raw/master/imgs/search.PNG)](https://github.com/MahmoudKon/messenger/blob/master/imgs/search.PNG)

4- send Media or attachment and download

 [![send media](https://github.com/MahmoudKon/messenger/raw/master/imgs/send-media.PNG)](https://github.com/MahmoudKon/messenger/blob/master/imgs/send-media.PNG)

5- Typing event

 [![typing](https://github.com/MahmoudKon/messenger/raw/master/imgs/typing.PNG)](https://github.com/MahmoudKon/messenger/blob/master/imgs/typing.PNG)

6- scrolling will start at the first unread message with the count of unread messages displayed.

 [![new-messagescount](https://github.com/MahmoudKon/messenger/raw/master/imgs/new-message-count.PNG)](https://github.com/MahmoudKon/messenger/blob/master/imgs/new-message-count.PNG)

7- read icons

- when send message to user and he is offline, the icon will be one check icon.
- when back to online the icon will be double ckeck.
- When the message is read, the color of the icon will change to green color.

 [![not-receive-message](https://github.com/MahmoudKon/messenger/raw/master/imgs/not-receive-message.PNG)](https://github.com/MahmoudKon/messenger/blob/master/imgs/not-receive-message.PNG)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

Total

3

Last Release

1245d ago

PHP version history (2 changes)7.0.x-devPHP &lt;8.0

v8PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d2528086946996320e6df28b4b13a7383c873d0a590e417716fef10cbe9fdc4?d=identicon)[MahmoudKon](/maintainers/MahmoudKon)

---

Top Contributors

[![MahmoudKon](https://avatars.githubusercontent.com/u/69181497?v=4)](https://github.com/MahmoudKon "MahmoudKon (19 commits)")

### Embed Badge

![Health badge](/badges/mahmoudkon-messenger/health.svg)

```
[![Health](https://phpackages.com/badges/mahmoudkon-messenger/health.svg)](https://phpackages.com/packages/mahmoudkon-messenger)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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