PHPackages                             deegitalbe/laravel-trustup-model-broadcast - 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. deegitalbe/laravel-trustup-model-broadcast

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

deegitalbe/laravel-trustup-model-broadcast
==========================================

Basic versioned php package.

v2.0.0(2mo ago)0860MITPHPCI passing

Since Oct 28Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/deegitalbe/laravel-trustup-model-broadcast)[ Packagist](https://packagist.org/packages/deegitalbe/laravel-trustup-model-broadcast)[ RSS](/packages/deegitalbe-laravel-trustup-model-broadcast/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (13)Used By (0)

laravel-trustup-model-broadcast
===============================

[](#laravel-trustup-model-broadcast)

Compatibility
-------------

[](#compatibility)

LaravelPackage8.x / 9.x1.x12.x2.xThis package is used to dispatch configured models ***created, updated or deleted*** events to our websocket microservice.

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

[](#installation)

### Configure websocket package

[](#configure-websocket-package)

Make sure you configured [websocket package](https://github.com/deegitalbe/laravel-trustup-io-websocket#env-configuration) first

### Install package using composer

[](#install-package-using-composer)

```
composer require deegitalbe/laravel-trustup-model-broadcast
```

### .env configuration

[](#env-configuration)

Add these information to your `.env` file.

```
TRUSTUP_MODEL_BROADCAST_APP_KEY=
```

Usage
-----

[](#usage)

### Configure your model

[](#configure-your-model)

```
use Illuminate\Database\Eloquent\Model;
use Deegitalbe\LaravelTrustupModelBroadcast\Traits\Models\IsTrustupBroadcastModel;
use Deegitalbe\LaravelTrustupModelBroadcast\Contracts\Models\TrustupBroadcastModelContract;

class YourModel extends Model implements TrustupBroadcastModelContract
{
    use IsTrustupBroadcastModel;

    /**
     * Getting attributes sent along when broadcasing events.

     * @param string $eventName Laravel model event that should be broadcasted (created, updated, deleted, ...)
     * @return array
     */
    public function getTrustupModelBroadcastEventAttributes(string $eventName): array
    {
        return [
            // Your attributes ...
        ];
    }
}
```

Keep in mind your event ***won't broadcast*** if your model is unable to provide ***professional authorization key***.

### Customization

[](#customization)

#### Professional authorization key

[](#professional-authorization-key)

By default this package use model attribute `professional_authorization_key`. To customize this behavior, just override trait method.

```
    /**
     * Getting model key used when broadcasting model events.
     *
     * By default if null, event would not broadcast.
     *
     * @return ?string
     */
    public function getTrustupModelBroadcastProfessionalAuthorizationKey(): ?string
    {
        return "your-value";
    }
```

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance85

Actively maintained with recent releases

Popularity16

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

Every ~111 days

Recently: every ~304 days

Total

12

Last Release

75d ago

Major Versions

v0.1.4 → v1.0.02022-12-21

v1.0.0 → v2.0.02026-02-26

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24230736?v=4)[Mathieu Henrotay](/maintainers/henrotaym)[@henrotaym](https://github.com/henrotaym)

---

Top Contributors

[![henrotaym](https://avatars.githubusercontent.com/u/24230736?v=4)](https://github.com/henrotaym "henrotaym (27 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/deegitalbe-laravel-trustup-model-broadcast/health.svg)

```
[![Health](https://phpackages.com/badges/deegitalbe-laravel-trustup-model-broadcast/health.svg)](https://phpackages.com/packages/deegitalbe-laravel-trustup-model-broadcast)
```

###  Alternatives

[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)[flarum/pusher

See new discussions and posts in real-time using Pusher.

22367.3k4](/packages/flarum-pusher)

PHPackages © 2026

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