PHPackages                             sunarctech/laravel-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. sunarctech/laravel-chat

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

sunarctech/laravel-chat
=======================

Pre-build Laravel chat package.

1.2(4y ago)312MITPHPPHP ^7.3|^8.0

Since Feb 28Pushed 4y agoCompare

[ Source](https://github.com/sunarc-technologies/laravel-chat)[ Packagist](https://packagist.org/packages/sunarctech/laravel-chat)[ Docs](https://github.com/sunarc-technologies/laravel-chat)[ RSS](/packages/sunarctech-laravel-chat/feed)WikiDiscussions main Synced 3d ago

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

[![image](https://user-images.githubusercontent.com/45708520/152330764-01e40664-832a-47fd-8141-d2249e2e36a3.png)](https://user-images.githubusercontent.com/45708520/152330764-01e40664-832a-47fd-8141-d2249e2e36a3.png)

Laravel Chat System 💯
=====================

[](#laravel-chat-system-)

Pre-build Laravel chat package. You can use this package to create a chat/messaging Laravel application or you can use the pre-build front-end part to kick-start your project.

[![Packagist License](https://camo.githubusercontent.com/a952f8b88af447c94f59af86115819e313333166b39d7fd08b602feb8cb822f4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73756e6172632d746563686e6f6c6f676965732f6c61726176656c2d63686174)](LICENSE) [![For PHP](https://camo.githubusercontent.com/4cc2d5b2dcc84067187999a4dbd1bd74629f45169e4195eb125f6658c397107b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e33253230746f253230382e782d6f72616e67652e737667)](https://github.com/sunarc-technologies/laravel-chat) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/7ea5a9697c805e0528f98a412a9c95da66d4b3e1e3ff9126851ffdcde9a462ac/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73756e6172632d746563686e6f6c6f676965732f6c61726176656c2d636861742e737667)](https://camo.githubusercontent.com/7ea5a9697c805e0528f98a412a9c95da66d4b3e1e3ff9126851ffdcde9a462ac/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73756e6172632d746563686e6f6c6f676965732f6c61726176656c2d636861742e737667) [![Github Issues](https://camo.githubusercontent.com/b740083c4b709e1239f443afc12ce247b94b5af7c3e119b2bc62f44ddb599bcf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f73756e6172632d746563686e6f6c6f676965732f6c61726176656c2d63686174)](https://github.com/sunarc-technologies/laravel-chat/issues) [![Github Stars](https://camo.githubusercontent.com/2a574af7fba3ac5bdc2e5c9cb0e86969da10fe24f402e5c41d7f5bb65c0d2f88/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f73756e6172632d746563686e6f6c6f676965732f6c61726176656c2d63686174)](https://camo.githubusercontent.com/2a574af7fba3ac5bdc2e5c9cb0e86969da10fe24f402e5c41d7f5bb65c0d2f88/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f73756e6172632d746563686e6f6c6f676965732f6c61726176656c2d63686174) [![Github Forks](https://camo.githubusercontent.com/75de015e9816fce5b630cc2bd4e2ea4271a6e8114f34505324f8457a50ca415b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f73756e6172632d746563686e6f6c6f676965732f6c61726176656c2d63686174)](https://camo.githubusercontent.com/75de015e9816fce5b630cc2bd4e2ea4271a6e8114f34505324f8457a50ca415b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f73756e6172632d746563686e6f6c6f676965732f6c61726176656c2d63686174) [![Packagist](https://camo.githubusercontent.com/d5767073ffc3dd84fd6154a9ef69c02b276dc01a674d6525a984daac6cd5f4af/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b6167652d73756e617263746563682f657863656c2d2d696d706f72742d626c7565)](https://packagist.org/packages/sunarctech/laravel-chat) [![Packagist Release](https://camo.githubusercontent.com/2e46eaa429fe970bc8f454158112638a04b9180a1e71b524b3e21ce80eadae74/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f73756e617263746563682f6c61726176656c2d63686174)](https://packagist.org/packages/sunarctech/laravel-chat) [![Packagist Downloads](https://camo.githubusercontent.com/5e0f42e4b87997d7c0c0603ac9599b41b149cd4f44fdca36cfc3530cefb81107/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73756e617263746563682f6c61726176656c2d63686174)](https://packagist.org/packages/sunarctech/laravel-chat)

Pre-build Laravel chat package. You can use this package to create a chat/messaging Laravel application or you can use the pre-build front-end part to kick-start your project.

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

[](#installation)

Via Composer

```
composer require sunarctech/laravel-chat
```

then

```
php artisan chat:install

```

Instructions
------------

[](#instructions)

Install this package and add authentication gurad, you can use some package like **Laravel UI**

This package uses **WebSockets** and for that dependent on [beyondcode/laravel-websockets](https://github.com/beyondcode/laravel-websockets)

#### Publish Files

[](#publish-files)

```
php artisan vendor:publish --provider="BeyondCode\LaravelWebSockets\WebSocketsServiceProvider" --tag="config" --tag="migrations"
```

Configurations
--------------

[](#configurations)

#### Make necessary change in order to change file validations.

[](#make-necessary-change-in-order-to-change-file-validations)

**chat.php**

```
return [
    'image_validation' => "max:1024|mimes:png,jpeg",
    'video_validation' => "max:102400|mimes:mp4",
    'file_validation' => "max:1024|mimes:txt",
];

```

#### Make necessary change in order to activate the websocket.

[](#make-necessary-change-in-order-to-activate-the-websocket)

**websockets.php**

```
'enable_client_messages' => 'true',
```

**broadcasting.php**

```
'pusher' => [
    'driver' => 'pusher',
    'key' => env('PUSHER_APP_KEY'),
    'secret' => env('PUSHER_APP_SECRET'),
    'app_id' => env('PUSHER_APP_ID'),
    'options' => [
        'cluster' => env('PUSHER_APP_CLUSTER'),
        'useTLS' => true,
        'host' => '127.0.0.1',
        'port' => 6001,
        'scheme' => 'http',
    ],
],
```

**Uncomment this provider from app.php, If not present please add this.**

```
/*
* Application Service Providers...
*/
...
App\Providers\BroadcastServiceProvider::class,
...
```

**.env**

```
BROADCAST_DRIVER=pusher
PUSHER_APP_ID=myappid
PUSHER_APP_KEY=myappkey
PUSHER_APP_SECRET=myappsecret
```

Database
--------

[](#database)

Package ships with some migration files, which is required in order to save the messages, defaul driver is used **MySQL**.

#### Migrate

[](#migrate)

```
php artisan migrate
```

#### Link Storage

[](#link-storage)

```
php artisan storage:link
```

How to use?
-----------

[](#how-to-use)

In order to use the chat, Fisrt need to start the websocket server Using Command:

```
php artisan websocket:serve
```

Visit the route, registered with Package.

```
www.yourdomain.com/chat
```

Known Error
-----------

[](#known-error)

You might face dependency version mismatch issue at the time of installation, To fix the issue just add **-W**:

```
composer require sunarctech/laravel-chat -W
```

Created by SunArc Technologies
------------------------------

[](#created-by-sunarc-technologies)

We are the leading Software Development Company providing end-to-end IT services &amp; solutions to our esteemed customers in multiple industries and domains for the past 18+ years? Give us a call.

+91-8764025209

🔧 Supported Versions
--------------------

[](#wrench-supported-versions)

Versions supported.

VersionLaravel VersionPHP VersionSupport0.1&lt;=7.07.3 - 8.xAll featuresLicense
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~8 days

Total

3

Last Release

1573d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7467d9bc3c24c9a4ef712ed7ba8a29a05b34d64a615ffa77199d43595ecb7587?d=identicon)[sunarc](/maintainers/sunarc)

---

Top Contributors

[![sunarcrajneesh](https://avatars.githubusercontent.com/u/45708520?v=4)](https://github.com/sunarcrajneesh "sunarcrajneesh (1 commits)")[![tarun-programmer](https://avatars.githubusercontent.com/u/63171454?v=4)](https://github.com/tarun-programmer "tarun-programmer (1 commits)")

---

Tags

Laravel Chatsunarcsunarctechsunarc-technologies

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sunarctech-laravel-chat/health.svg)

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

###  Alternatives

[toin0u/geocoder-laravel

Geocoder Service Provider for Laravel

7615.4M17](/packages/toin0u-geocoder-laravel)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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