PHPackages                             wss0823/mbs-push-middleware - 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. wss0823/mbs-push-middleware

ActiveLibrary

wss0823/mbs-push-middleware
===========================

Uniondrug mbs push middleware Component for uniondrug/framework

020PHP

Since Jan 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/wss0823/mbs-push-middleware)[ Packagist](https://packagist.org/packages/wss0823/mbs-push-middleware)[ RSS](/packages/wss0823-mbs-push-middleware/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

日志中间件
=====

[](#日志中间件)

安装
--

[](#安装)

```
composer require wss0823/module-push-middleware
```

> 中间件依赖 `uniondrug/middleware` 中间件基础组件。

修改 `app.php` 配置文件，加上Middleware服务，服务名称`LogMiddleware`

```
return [
    'default' => [
        ......
        'providers'           => [
            ......
            \Uniondrug\TokenAuthMiddleware\MbsPushMiddleware::class,
        ],
    ],
];
```

修改 `server.php` 配置文件，加入 tables 内存表。

```
return [
    'default' => [
        "tables" => [
            Uniondrug\MbsPushMiddleware\MbsPushTable::class => 64
        ],
        "class" => \App\Servers\Http::class,
    ]
   ]
```

在对应需要加入mbs发送的地方写入数据

```
$table= $this->getTable(MbsPushTable::TABLE_NAME);
$table->set($this->>getTrace()->getRequestId(),["topicName"=>"merchant","topicTag"=>"edit","message"=>$value]);
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5cd6edde9012a99962f94a0cd5e92666ff0a5b995489281d52a896bfdc5dfde2?d=identicon)[wss0823](/maintainers/wss0823)

---

Top Contributors

[![wss0823](https://avatars.githubusercontent.com/u/9457778?v=4)](https://github.com/wss0823 "wss0823 (1 commits)")

### Embed Badge

![Health badge](/badges/wss0823-mbs-push-middleware/health.svg)

```
[![Health](https://phpackages.com/badges/wss0823-mbs-push-middleware/health.svg)](https://phpackages.com/packages/wss0823-mbs-push-middleware)
```

PHPackages © 2026

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