PHPackages                             laraditz/realm-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. laraditz/realm-chat

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

laraditz/realm-chat
===================

Laravel wrapper for Realm Chat SDK

1.0.0(3y ago)07MITPHPPHP ^8.0

Since Oct 19Pushed 3y ago1 watchersCompare

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

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

Laravel Realm Chat
==================

[](#laravel-realm-chat)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3d46aa58c39e894bcce29df98a53c927cd93d23be914f704dc67adb8d6aa199d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6172616469747a2f7265616c6d2d636861742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laraditz/realm-chat)[![Total Downloads](https://camo.githubusercontent.com/ee81d053548d1ba84a68ca8688ae1b5debc91070567b4abb0a170c40c004b0bd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6172616469747a2f7265616c6d2d636861742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laraditz/realm-chat)[![GitHub Actions](https://github.com/laraditz/realm-chat/actions/workflows/main.yml/badge.svg)](https://github.com/laraditz/realm-chat/actions/workflows/main.yml/badge.svg)

Laravel wrapper for Realm Chat SDK. Includes event for receiving messages.

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

[](#installation)

You can install the package via composer:

```
composer require laraditz/realm-chat
```

Before Start
------------

[](#before-start)

Configure your variables in your `.env` (recommended) or you can publish the config file and change it there.

```
REALM_CHAT_API_KEY=
REALM_CHAT_DEVICE_ID=

```

(Optional) You can publish the config file via this command:

```
php artisan vendor:publish --provider="Laraditz\RealmChat\RealmChatServiceProvider" --tag="config"
```

Run the migration command to create the necessary database table.

```
php artisan migrate
```

Add `routeNotificationForRealmChat` method to your Notifiable model.

```
public function routeNotificationForRealmChat($notification)
{
    return $this->mobile_no;
}
```

Usage
-----

[](#usage)

Now you can use the channel in your `via()` method inside the notification:

```
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Laraditz\RealmChat\RealmChatChannel;
use Laraditz\RealmChat\RealmChatMessage;

class TestNotification extends Notification
{
    use Queueable;

    public function via($notifiable)
    {
        return [RealmChatChannel::class];
    }

    public function toRealmChat($notifiable)
    {
        return (new RealmChatMessage())
            ->content("Test send message!")
            ->media("https://news.tokunation.com/wp-content/uploads/sites/5/2022/07/Kamen-Rider-Geats-Teaser.jpeg", "Kamen-Rider-Geats-Teaser.jpeg");
    }
}
```

Event
-----

[](#event)

This package also provide an event to allow your application to listen for Realm Chat message receive. You can create your listener and register it under event below.

EventDescriptionLaraditz\\RealmChat\\Events\\MessageReceivedWhen a message comes in.Webhook URL
-----------

[](#webhook-url)

You may setup the URLs below on Realm Chat dashboard so that Realm Chat will push new messages to it and it will then trigger the `MessageReceived` event above.

```
https://your-app-url/realm-chat/webhooks/receive //for message receive

```

### 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)

- [Raditz Farhan](https://github.com/laraditz)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

Dependency
----------

[](#dependency)

- [Realm Chat SDK](https://github.com/raditzfarhan/realm-chat).

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

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

Unknown

Total

1

Last Release

1353d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1203676?v=4)[Raditz Farhan](/maintainers/raditzfarhan)[@raditzfarhan](https://github.com/raditzfarhan)

---

Top Contributors

[![raditzfarhan](https://avatars.githubusercontent.com/u/1203676?v=4)](https://github.com/raditzfarhan "raditzfarhan (5 commits)")

---

Tags

laraditzrealm-chat

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laraditz-realm-chat/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M375](/packages/illuminate-redis)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)

PHPackages © 2026

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