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

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

mesprovider/messenger
=====================

Simple user messaging tool for Laravel

07PHP

Since Feb 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/NikKosvel/messenger-them-6533)[ Packagist](https://packagist.org/packages/mesprovider/messenger)[ RSS](/packages/mesprovider-messenger/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

[![SQLite Tests](https://github.com/cmgmyr/laravel-messenger/actions/workflows/run-tests.yml/badge.svg)](https://github.com/cmgmyr/laravel-messenger/actions/workflows/run-tests.yml)[![MySQL Tests](https://github.com/cmgmyr/laravel-messenger/actions/workflows/run-tests-mysql.yml/badge.svg)](https://github.com/cmgmyr/laravel-messenger/actions/workflows/run-tests-mysql.yml)[![PostgreSQL Tests](https://github.com/cmgmyr/laravel-messenger/actions/workflows/run-tests-postgres.yml/badge.svg)](https://github.com/cmgmyr/laravel-messenger/actions/workflows/run-tests-postgres.yml)

[![Latest Version](https://camo.githubusercontent.com/238a322bd8a155e870aaa9569b88f267b48f338e2f3b9d1f243d6cb5c502facc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f636d676d79722f6c61726176656c2d6d657373656e6765722e737667)](https://github.com/cmgmyr/laravel-messenger/releases)[![Total Downloads](https://camo.githubusercontent.com/eeb3895b4007c88803d63dcae7ff832b199e31a285ed31bf3000fa748b4d6d1a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636d676d79722f6d657373656e6765722e737667)](https://packagist.org/packages/cmgmyr/messenger)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)

Laravel Messenger
=================

[](#laravel-messenger)

This package will allow you to add a full user messaging system into your Laravel application.

Leave some feedback
-------------------

[](#leave-some-feedback)

[How are you using laravel-messenger?](https://github.com/cmgmyr/laravel-messenger/issues/55)

Features
--------

[](#features)

- Multiple conversations per user
- Optionally loop in additional users with each new message
- View the last message for each thread available
- Returns either all messages in the system, all messages associated to the user, or all message associated to the user with new/unread messages
- Return the users unread message count easily
- Very flexible usage so you can implement your own access control

Common uses
-----------

[](#common-uses)

- Open threads (everyone can see everything)
- Group messaging (only participants can see their threads)
- One to one messaging (private or direct thread)

Laravel Versions
----------------

[](#laravel-versions)

LaravelMessenger4.\*1.\*5.0-5.4&lt;= 2.16.25.5+2.\*Installation (Laravel 4.x - no longer actively supported)
---------------------------------------------------------

[](#installation-laravel-4x---no-longer-actively-supported)

Installation instructions for Laravel 4 can be [found here](https://github.com/cmgmyr/laravel-messenger/tree/v1).

Installation (Laravel 5.x)
--------------------------

[](#installation-laravel-5x)

```
composer require cmgmyr/messenger

```

Or place manually in composer.json:

```
"require": {
    "cmgmyr/messenger": "~2.0"
}

```

Run:

```
composer update

```

Add the service provider to `config/app.php` under `providers`:

```
'providers' => [
    Cmgmyr\Messenger\MessengerServiceProvider::class,
],
```

> **Note**: If you are using Laravel 5.5, this step is unnecessary. Laravel Messenger supports [Package Discovery](https://laravel.com/docs/5.5/packages#package-discovery).

Publish config:

```
php artisan vendor:publish --provider="Cmgmyr\Messenger\MessengerServiceProvider" --tag="config"

```

Update config file to reference your User Model:

```
config/messenger.php

```

Create a `users` table if you do not have one already. If you need one, the default Laravel migration will be satisfactory.

**(Optional)** Define names of database tables in package config file if you don't want to use default ones:

```
'messages_table' => 'messenger_messages',
'participants_table' => 'messenger_participants',
'threads_table' => 'messenger_threads',
```

Publish migrations:

```
php artisan vendor:publish --provider="Cmgmyr\Messenger\MessengerServiceProvider" --tag="migrations"

```

Migrate your database:

```
php artisan migrate

```

Add the trait to your user model:

```
use Cmgmyr\Messenger\Traits\Messagable;

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

Examples
--------

[](#examples)

- [Controller](https://github.com/cmgmyr/laravel-messenger/tree/master/examples/MessagesController.php)
- [Routes](https://github.com/cmgmyr/laravel-messenger/tree/master/examples/routes.php)
- [Views](https://github.com/cmgmyr/laravel-messenger/tree/master/examples/views)

Example Projects
----------------

[](#example-projects)

- \[WIP\] [Pusher](https://github.com/cmgmyr/laravel-messenger-pusher-demo)
- \[WIP\] [Lumen API](https://github.com/cmgmyr/lumen-messenger-api)

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Chris Gmyr](https://github.com/cmgmyr)
- [Anton Komarev](https://github.com/antonkomarev)
- [All Contributors](../../contributors)

### Special Thanks

[](#special-thanks)

This package used [AndreasHeiberg/laravel-messenger](https://github.com/AndreasHeiberg/laravel-messenger) as a starting point.

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![NikKosvel](https://avatars.githubusercontent.com/u/83957791?v=4)](https://github.com/NikKosvel "NikKosvel (7 commits)")

### Embed Badge

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

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

###  Alternatives

[fresns/fresns

Cross-platform general-purpose multiple content forms social network service software.

4841.5k](/packages/fresns-fresns)[litecms/block

Block package for litecms.

1755.2k1](/packages/litecms-block)

PHPackages © 2026

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