PHPackages                             wenshi/push - 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. wenshi/push

ActiveLibrary

wenshi/push
===========

推送服务SDK

0.0.6(4y ago)017MITPHP

Since Nov 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/epaii/wenshi-composer-push-php)[ Packagist](https://packagist.org/packages/wenshi/push)[ RSS](/packages/wenshi-push/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

\[toc\]

推送服务：
-----

[](#推送服务)

使用之前务必初始化sign(全局有效,项目唯一码获取方式为在后台注册获得或者联系管理员)

```
use wenshi\push;

Push::init('您的项目唯一码');
```

### 一，注册账户

[](#一注册账户)

(用于注册手机序列号到商户服务)

如下代码 返回true为成功 false为失败

```
use wenshi\push;

/**
*@param uid   必填   用户id
*@param cid   必填   手机序列号
*/
Push::bind(5,'2925b1bcf4eb21feffda6d14e1bfecb6');
```

### 二，退出登录后不收消息

[](#二退出登录后不收消息)

如下代码 返回true为成功 false为失败

```
use wenshi\push;

/**
*用户手机号
*用户填写的验证码
*/
/**
*@param uid   必填   用户id
*@param cid   必填   手机序列号
*/
Push::unbind(5,'2925b1bcf4eb21feffda6d14e1bfecb6');
```

### 三，推送消息(一条或者多条)

[](#三推送消息一条或者多条)

如下代码 返回true为成功 失败返回失败原因

```
use wenshi\push;

*/
/**
*@param uid       必填     用户id,多个已逗号隔开
*@param title     必填     推送的标题
*@param content   必填     推送的内容
@param data       非必填   个人需要传递推送的数据 []
*/
Push::push('5,6,11','这个推送标题','推送的内容',['info'=>'你好','type'=>1]);
```

也可以推送到cid

```
use wenshi\push;

*/
/**
*@param uid       必填     用户id,多个已逗号隔开
*@param title     必填     推送的标题
*@param content   必填     推送的内容
@param data       非必填   个人需要传递推送的数据 []
*/
Push::pushByCids('5,6,11','这个推送标题','推送的内容',['info'=>'你好','type'=>1]);
```

### 四，推送消息(整个平台)

[](#四推送消息整个平台)

如下代码 返回true为成功 失败返回失败原因

```
use wenshi\push;

*/
*@param title     必填     推送的标题
*@param content   必填     推送的内容
@param data       非必填   个人需要传递推送的数据 []
*/
Push::pushToApp('这个推送标题','推送的内容',['info'=>'你好','status'=>1]);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 56% 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 ~37 days

Recently: every ~46 days

Total

6

Last Release

1813d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6fe8c6a6a5b64efc9fcda02b7fe3b660d0da22ea26ea627cbba9e5466779198c?d=identicon)[epii](/maintainers/epii)

---

Top Contributors

[![k1919](https://avatars.githubusercontent.com/u/24536225?v=4)](https://github.com/k1919 "k1919 (14 commits)")[![epaii](https://avatars.githubusercontent.com/u/15167976?v=4)](https://github.com/epaii "epaii (11 commits)")

### Embed Badge

![Health badge](/badges/wenshi-push/health.svg)

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

PHPackages © 2026

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