PHPackages                             erickz/laravel-messenger-lv4 - 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. erickz/laravel-messenger-lv4

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

erickz/laravel-messenger-lv4
============================

Simple user messaging tool for Laravel 4. A copy from Chris Gmyr.

1.0(9y ago)013MITPHPPHP &gt;=5.4.0

Since Aug 8Pushed 9y agoCompare

[ Source](https://github.com/erickz/laravel-messenger-lv4)[ Packagist](https://packagist.org/packages/erickz/laravel-messenger-lv4)[ RSS](/packages/erickz-laravel-messenger-lv4/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/cd71f3c25ce5c42beae3f2f5fe4640f965ccfa02e099f407183d4774f2426c9d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f657269636b7a2f6c61726176656c2d6d657373656e6765722d6c76342f76312e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/erickz/laravel-messenger-lv4)[![Code Climate](https://camo.githubusercontent.com/335b3f8b19774c50f61e86a10a47ae411dfa49d2f0677a36a3128ee8738c61ba/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f657269636b7a2f6c61726176656c2d6d657373656e6765722d6c76342e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/erickz/laravel-messenger-lv4)[![Latest Version](https://camo.githubusercontent.com/37569fdb83419d6771a2988380eda8f9d3a054df8ea6f494ac90037aac757679/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f657269636b7a2f6c61726176656c2d6d657373656e6765722d6c76342e7376673f7374796c653d666c61742d737175617265)](https://github.com/erickz/laravel-messenger-lv4/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](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/erickz/laravel-messenger-lv4/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 acess 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)

Installation (Laravel 4.x)
--------------------------

[](#installation-laravel-4x)

In composer.json:

```
"require": {
    "erickz/messenger": "dev-master"
}

```

Run:

```
composer update

```

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

```
'providers' => [
    'Cmgmyr\Messenger\MessengerServiceProvider'
]

```

Add the trait to your user model:

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

class User extends Eloquent {
	use Messagable;
}

```

Create a `users` table if you do not have one already. If you need one, simply use [this example](https://github.com/cmgmyr/laravel-messenger/blob/v1/src/Cmgmyr/Messenger/examples/create_users_table.php) as a starting point, then migrate.

Migrate your database:

```
php artisan migrate --package=cmgmyr/messenger

```

Move and alter the config file (optional):

```
php artisan config:publish cmgmyr/messenger

```

Examples
--------

[](#examples)

- [Controller](https://github.com/cmgmyr/laravel-messenger/blob/v1/src/Cmgmyr/Messenger/examples/MessagesController.php)
- [Routes](https://github.com/cmgmyr/laravel-messenger/blob/v1/src/Cmgmyr/Messenger/examples/routes.php)
- [Views](https://github.com/cmgmyr/laravel-messenger/tree/v1/src/Cmgmyr/Messenger/examples/views)

Contributing?
-------------

[](#contributing)

Please format your code before creating a pull-request:

```
vendor/bin/php-cs-fixer fix --level psr2 .

```

### Special Thanks

[](#special-thanks)

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

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

3613d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8708483?v=4)[Erick Carvalho](/maintainers/erickz)[@erickz](https://github.com/erickz)

---

Top Contributors

[![erickz](https://avatars.githubusercontent.com/u/8708483?v=4)](https://github.com/erickz "erickz (1 commits)")

---

Tags

laravelmessaginglaravel4Messengeruser messaging

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/erickz-laravel-messenger-lv4/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[cmgmyr/messenger

Simple user messaging tool for Laravel

2.6k2.5M6](/packages/cmgmyr-messenger)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k14.1M124](/packages/laravel-pulse)[flarum/core

Delightfully simple forum software.

201.4M2.2k](/packages/flarum-core)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)[lexxyungcarter/chatmessenger

Simple one-to-one/group chat messaging tool for Laravel 5, 6, 7, 8, 9 &amp; 10 with Pusher Integration

10525.0k](/packages/lexxyungcarter-chatmessenger)

PHPackages © 2026

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