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

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

aurawindsurfing/messenger
=========================

Super simple user 1v1 messaging system to be used within Laravel application.

1.0.3(6y ago)125MITPHPPHP ^7.1

Since Sep 10Pushed 6y ago2 watchersCompare

[ Source](https://github.com/aurawindsurfing/messenger)[ Packagist](https://packagist.org/packages/aurawindsurfing/messenger)[ Docs](https://github.com/aurawindsurfing/messenger)[ RSS](/packages/aurawindsurfing-messenger/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

Messenger for Laravel [![Packagist License](https://camo.githubusercontent.com/0deb7eca8c00f26f31b86641c753bd48f58f36e6125726b851d4c4fb48916a45/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6175726177696e6473757266696e672f6d657373656e6765722e7376673f7374796c653d666c61742d737175617265)](LICENSE.md) [![For Laravel](https://camo.githubusercontent.com/411dda43ddc2a31f345db1ce72819c5f8eb6aae0222c9a6f38541be1d4e3eb1c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d352e37253230746f253230352e382d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://github.com/aurawindsurfing/messenger)
=======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#messenger-for-laravel--)

[![Travis Status](https://camo.githubusercontent.com/66357da3ab4a07e5ee959597701851bdd9425b09e3bd7b884f5a6f790e168ef9/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6175726177696e6473757266696e672f6d657373656e6765722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/aurawindsurfing/messenger)[![Coverage Status](https://camo.githubusercontent.com/7c8a2ce1898898d1dc8b8a0dbc6c962a55ee44222352279c6524414dd26fb622/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6175726177696e6473757266696e672f6d657373656e6765722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/aurawindsurfing/messenger/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2dce83a67d2c6dc4932cdfe79193fd877d9abb6201564ffa699ba5274a2dd8fb/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6175726177696e6473757266696e672f6d657373656e6765722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/aurawindsurfing/messenger/?branch=master)[![Github Issues](https://camo.githubusercontent.com/09ccf4d0673d4c37a2af38544aaf406cbf256e3a07ccb1bfa9e243e8e71ba2de/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6175726177696e6473757266696e672f6d657373656e6765722e7376673f7374796c653d666c61742d737175617265)](https://github.com/aurawindsurfing/messenger/issues)

[![Packagist](https://camo.githubusercontent.com/d6a2771a6327afcafa6342077dc5a174f7390c8ea7448ff9518d79c3ef07ec82/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b6167652d6175726177696e6473757266696e672f6d657373656e6765722d626c75652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aurawindsurfing/messenger)[![Packagist Release](https://camo.githubusercontent.com/33d6b05b921d549c52489ef5353c77b10d1607a05dac789a247a92b24d4b9a34/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6175726177696e6473757266696e672f6d657373656e6765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aurawindsurfing/messenger)[![Packagist Downloads](https://camo.githubusercontent.com/f45405b0ad10b964c2086f3ab2bae30a2ab6a5eaae89355ad19613878f33ccf1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6175726177696e6473757266696e672f6d657373656e6765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aurawindsurfing/messenger)

This package allows you to create simple user to user messaging system within your Laravel application. It comes packaged with all the views and even a simple admin panel. It does not have support for group conversations yet as well as it does not support editing of messages. It is simply send and receive messenger.

[![Messenger Dashboard](https://github.com/aurawindsurfing/messenger/raw/master/messages_dashboard.png?raw=true)](https://github.com/aurawindsurfing/messenger/blob/master/messages_dashboard.png?raw=true)

Features
--------

[](#features)

Easy setup &amp; configuration.

- One to one messaging between users
- Multiple conversations (threads) per user
- Returns all messages associated with the user
- Returns the user's unread message count
- Well documented &amp; IDE Friendly.
- Well tested with maximum code quality.
- Laravel `5.7` to `5.8` are supported.
- Made with ❤️ &amp; ☕.

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

[](#laravel-versions)

LaravelMessenger5.7+1.\*Installation
------------

[](#installation)

You can install the package via composer:

```
composer require aurawindsurfing/messenger
```

Or place manually in composer.json:

```
"require": {
    "aurawindsurfing/messenger": "~1.0"
}
```

Run:

```
composer update
```

This package apart from standard config and migrations files includes also controller, views, factories and console commands.

To publish all assets run:

```
php artisan vendor:publish  --provider="Aurawindsurfing\Messenger\MessengerServiceProvider"
```

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

Migrate your database:

```
php artisan migrate
```

Edit config:

```
config/messenger.php
```

This package allows you to create fake messages between users so you can construct views more easily. To view fake messages you NEED to be logged in as one of the users otherwise you will receive 404 error. To choose for which users to create messages edit your config file:

```
'firstUserId'  => 1,
'secondUserId' => 2,
```

Add the trait to your user model:

```
use Aurawindsurfing\Messenger\Messagable;

class User extends Authenticatable {

    use Messagable;
```

Usage
-----

[](#usage)

Populate your messenger tables with dummy data so you will be able to see some messages displayed. To do this run:

```
php artisan messenger:generate
```

Log in as one of the users designated in the config file in visit:

```
https://yourapp.test/messages/1
```

To see message threads received by first user

To clear all your dummy data run below command in your console. Be careful as this command will delete all data from messages table including real messages if they exist!

```
php artisan messenger:deleteAllData
```

Customise
=========

[](#customise)

Controller
----------

[](#controller)

**(Optional)** This package uses its own MessagesController which you might choose to overwrite. To do this you need to copy it from

```
/vendor/aurawindsurfing/messenger/src/Http/Controllers
```

to

```
/App/Http/Controllers
```

Edit your config file and your copied controller to amend controller namesapce:

```
'controller_namespace' => 'App\Http\Controllers',
```

This controller uses 3 methods, `index`, `create`, `store` feel free to rename them to whatever is necessary in your own application.

Edit your config file and amend method names:

```
// customise controller method names if you choose to overwrite default controller
'controller_index'  => 'index',
'controller_create' => 'create',
'controller_store'  => 'store',
```

Views:
------

[](#views)

```
php artisan vendor:publish --tag=views --provider="Aurawindsurfing\Messenger\MessengerServiceProvider"
```

They will be placed in:

```
resources/views/vendor/messenger
```

Migrations:
-----------

[](#migrations)

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

Commands and factories:
-----------------------

[](#commands-and-factories)

Package factories and commands will be available for your laravel app with autoloading. You can copy them to relevant places and overwrite them if needed.

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

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

[](#contributing)

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

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Tomasz Lotocki](https://github.com/aurawindsurfing)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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

Total

4

Last Release

2430d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14302496?v=4)[aurawindsurfing](/maintainers/aurawindsurfing)[@aurawindsurfing](https://github.com/aurawindsurfing)

---

Top Contributors

[![aurawindsurfing](https://avatars.githubusercontent.com/u/14302496?v=4)](https://github.com/aurawindsurfing "aurawindsurfing (24 commits)")

---

Tags

chatconversationdiscussionlaravelmessengerphpphplaravelchatMessengerdiscussionconversationaurawindsurfing

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[musonza/chat

Chat Package for Laravel

1.2k253.4k1](/packages/musonza-chat)[monicahq/laravel-cloudflare

Add Cloudflare ip addresses to trusted proxies for Laravel.

3372.7M4](/packages/monicahq-laravel-cloudflare)[kra8/laravel-snowflake

Snowflake for Laravel and Lumen.

188402.3k6](/packages/kra8-laravel-snowflake)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[lexxyungcarter/chatmessenger

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

10724.1k](/packages/lexxyungcarter-chatmessenger)

PHPackages © 2026

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