PHPackages                             voilaf/message-system - 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. voilaf/message-system

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

voilaf/message-system
=====================

PHP message-system client for Laravel &amp;&amp; Lumen

v1.0.1(5y ago)011MITPHPPHP &gt;=7.1.3

Since May 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/voilaf/message-system)[ Packagist](https://packagist.org/packages/voilaf/message-system)[ RSS](/packages/voilaf-message-system/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

message-system
==============

[](#message-system)

PHP message-system client for Laravel &amp;&amp; Lumen

基于Roadrunner + Nats

### 起因

[](#起因)

PHP-Nats-Client社区版本超过2年未更新，稳定性很难得到保证

我们在Roadrunner中增加Service，使用官方Go-Nats-Client库， PHP与Roadrunner通过GRPC通信，转发实现PHP-Nats发布、订阅功能

### Installation

[](#installation)

`message-system` is available to add to your project via composer. Simply add the following to your composer.json.

```
{
    ...
    "require": {
        ...
        "voilaf/message-system": "^1.0"
    }
    ...
}

```

or execute command.

```
composer require voilaf/message-system

```

### Configuration

[](#configuration)

1、copy `config/message.php` to `project/config/message.php`

2、add your sub or pub subjects

3、add `APP_NAME` to .env

4、register MessageSystemProvider to project

```
$this->app->register(\Voilaf\MessageSystem\MessageServiceProvider::class);

```

5、generate Subscribe class in `app\Subs` by executing command

```
php artisan make:subscribe ExampleSubscribe

```

### Subscription （Laravel &amp;&amp; Lumen）

[](#subscription-laravel--lumen)

```
    // string $subject 发布事件名
    // string $data 发布信息
    // string $desc 事件描述
    app('message-client')->pub($subject, $data, $desc);
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

2181d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f3b206ff138d173e91779eeee17ae466419d25716967806135788758e17a4eed?d=identicon)[voilaf](/maintainers/voilaf)

---

Tags

laravellumennats

### Embed Badge

![Health badge](/badges/voilaf-message-system/health.svg)

```
[![Health](https://phpackages.com/badges/voilaf-message-system/health.svg)](https://phpackages.com/packages/voilaf-message-system)
```

###  Alternatives

[artesaos/seotools

SEO Tools for Laravel and Lumen

3.3k5.1M60](/packages/artesaos-seotools)[ans-group/laravel-health-check

A package for checking the health of your Laravel/Lumen applications.

167930.0k2](/packages/ans-group-laravel-health-check)[kra8/laravel-snowflake

Snowflake for Laravel and Lumen.

188402.3k6](/packages/kra8-laravel-snowflake)[laracrafts/laravel-url-shortener

Powerful URL shortening tools in Laravel

97110.7k](/packages/laracrafts-laravel-url-shortener)[proai/lumen-annotations

Route and event binding annotations for Laravel Lumen

1012.4k](/packages/proai-lumen-annotations)

PHPackages © 2026

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