PHPackages                             wslibs/sendmsg - 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. wslibs/sendmsg

ActiveLibrary

wslibs/sendmsg
==============

短信服务SDK

0.0.9(6y ago)192MITPHPPHP &gt;=7.0

Since May 20Pushed 6y agoCompare

[ Source](https://github.com/songyangphp/WsSendMsg)[ Packagist](https://packagist.org/packages/wslibs/sendmsg)[ RSS](/packages/wslibs-sendmsg/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (10)Used By (0)

\[toc\]

短信服务：
-----

[](#短信服务)

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

```
use msg\SendMsg;

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

### 一，发送验证码

[](#一发送验证码)

(验证码类短信也属于变量短信,属于特殊的变量短信,需要在后台和短信商报备)

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

```
use msg\SendMsg;

/**
*用户手机号
*/
SendMsg::sendCodeMsg('17796908132');
```

### 二，校验验证码

[](#二校验验证码)

如下代码 返回true为验证码正确 false为验证码错误

```
use msg\SendMsg;

/**
*用户手机号
*用户填写的验证码
*/
SendMsg::checkCode('177****8132','679478');
```

### 三，发送变量短信(此功能旨在提高短信发送效率)

[](#三发送变量短信此功能旨在提高短信发送效率)

(变量短信模板需要先在短信商和后台报备)

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

```
use msg\SendMsg;

/**
*用户手机号
*要使用的模板类型
*规定类型数组数组 模板所需的变量 顺序必须严格按照模板中*号的顺序排列
*/
SendMsg::sendTemMsg('177****8132','xx',[]));
```

### 四，发送其他短信

[](#四发送其他短信)

(发送任意内容的短信)

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

```
use msg\SendMsg;

/**
*用户手机号
*要发送的短信内容
*/
SendMsg::sendOtherMsg('177****8132','xxxxxxxxx');
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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

Total

9

Last Release

2542d ago

### Community

Maintainers

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

---

Top Contributors

[![songyangphp](https://avatars.githubusercontent.com/u/30816362?v=4)](https://github.com/songyangphp "songyangphp (17 commits)")

### Embed Badge

![Health badge](/badges/wslibs-sendmsg/health.svg)

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

PHPackages © 2026

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