PHPackages                             wstools/push-notice - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. wstools/push-notice

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

wstools/push-notice
===================

推送服务SDK

v0.02(5y ago)05MITPHPPHP &gt;=7.0

Since Nov 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/k1919/pushnotice)[ Packagist](https://packagist.org/packages/wstools/push-notice)[ RSS](/packages/wstools-push-notice/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (8)Used By (0)

\[toc\]

推送服务：
-----

[](#推送服务)

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

```
use wenshi\push\notice;

PushNotice::setSign('您的项目唯一码');
```

### 一，注册账户

[](#一注册账户)

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

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

```
use wenshi\push\notice;

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

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

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

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

```
use wenshi\push\notice;

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

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

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

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

```
use wenshi\push\notice;

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

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

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

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

```
use wenshi\push\notice;

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

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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 ~0 days

Total

7

Last Release

2001d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24536225?v=4)[k1919](/maintainers/k1919)[@k1919](https://github.com/k1919)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[eduardokum/laravel-mail-auto-embed

Library for embed images in emails automatically

1702.0M5](/packages/eduardokum-laravel-mail-auto-embed)

PHPackages © 2026

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