PHPackages                             mydom/sms - 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. mydom/sms

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

mydom/sms
=========

短信频发拦截

v3.1.4(2y ago)0107Apache-2.0PHPPHP &gt;=7.0.0

Since Oct 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Yintonghao/SMS)[ Packagist](https://packagist.org/packages/mydom/sms)[ RSS](/packages/mydom-sms/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

频发拦截
====

[](#频发拦截)

设定git版本

```
git tag -a v1.0.1 -m "第1个版本"

```

```
git push origin v1.0.1

```

使用须知

```
请把src/config目录下的Dok.php拷贝到app/common/lib下边。也可拷贝到其它目录请注意命令空间

```

调用示例

```
/*
 * 频发拦截
 */
public function sms()
{
    $param = $this->request->param();
    //后台配置
    $obj = new Setting();
    //枚举类型
    $data = $obj->getConfigSms();
    //添加或修改
    $ad = [
        'type' => 1,
        'business' => 1,
        'second' => 1,
        'c' => 1,// 1-时 2-分 3-秒
        'num' => 1,
        'sort' => 0
    ];
    $data = $obj->addConfig($ad);
    //删除
    $obj->deleteConfig(1);

    //频繁拦截
    $obj = new Intercept(Dok::BUSINESS_LOGIN);
    $obj->mobile = $param['mobile'];
    $obj->IP = '127.0.0.1';
    $obj->holdBack();
    $obj->sendBeforeInc();
}

/*
 * 发送短信
 */
public function send()
{
    //创蓝平台
    $appid = '你的应用id';
    $secret = '你的应用密钥';
    $obj = Factory::createObject('ChuangLanSms',$appid,$secret);
    $code = $obj->getCode(6);
    $msg = "您的验证码为: {$code}，请妥善保管";
    $obj->sendSMS('接受短信的手机号',$msg);
    //后续还会增加其它平台
}

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

Total

4

Last Release

940d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/mydom-sms/health.svg)

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

###  Alternatives

[anteris-dev/data-transfer-object-factory

Gives an easy-to-use API for mocking Data Transfer Objects.

4087.4k](/packages/anteris-dev-data-transfer-object-factory)

PHPackages © 2026

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