PHPackages                             dhsms/dhsms - 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. dhsms/dhsms

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

dhsms/dhsms
===========

常用的短信发送的封装

v1.0.1(6y ago)022MITPHPPHP &gt;=5.6

Since Jan 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/dhailing/dhsms)[ Packagist](https://packagist.org/packages/dhsms/dhsms)[ RSS](/packages/dhsms-dhsms/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (12)Used By (0)

**dhsms**

`composer require dhsms/dhsms`

- 集合常用的短信接口,不用每次都复制方法什么的,旨在即装即用

聚知信
---

[](#聚知信)

```
public static function juzhixin($data)
{
    $user_config = [            //申请信息配置
        'juzhixin' => [         //聚知信配置
            'account' => '',    //账号
            'password' => '',   //密码
            'subid' => ,        //用户id
        ]
    ];

    $code = mt_rand(1000, 9999);
    $config_biz = [
        'sendTime' => '',           //配置定时发送时间,不定时,为空
        'mobile' => '182********',  //手机号
        'content' => '【XXX】您的验证码是' . $code . ',请在5分钟内使用。'   //发送内容
    ];

    $sms = new Send($user_config);  //实例化短信发送对象

    $result = $sms->driver('juzhixin')->gateway('action')->send($config_biz);   //发送短信

    dd($result);    //打印发送结果

//    array:5 [
//      "returnstatus" => "Success"
//      "message" => "ok"
//      "remainpoint" => "98481"
//      "taskID" => "116459"
//      "successCounts" => "1"
//    ]
}

```

玄武短信
----

[](#玄武短信)

```
public static function xuanwu()
{
    $user_config = [            //申请信息配置
        'xuanwu' => [           //玄武短信配置
            'account' => '',    //账号
            'password' => '',   //密码
            'subid' => '',      //用户id 可以为空
        ]
    ];

    $code = mt_rand(1000, 9999);
    $config_biz = [
        'mobile' => '182********',
        'content' => '您的验证码是' . $code . ',请在5分钟内使用。'
    ];

    $sms = new Send($user_config);

    $result = $sms->driver('xuanwu')->gateway('action')->send($config_biz);

    dd($result);

    //0 表示发送成功
}

```

阿里云短信
-----

[](#阿里云短信)

```
public static function aliyun()
{
    $user_config = [                    //阿里云申请的配置信息
        'aliyun' => [
            'accessKeyId' => '',
            'accessKeySecret' => '',
            'signName' => '',
        ]
    ];

    $code = mt_rand(1000, 9999);
    $config_biz = [
        'mobile' => '182********',
        'templateParam' => ['code' => $code],   //模板中的变量
        'TemplateCode' => 'SMS_15******'        //阿里云申请的模板号/id
    ];

    $sms = new Send($user_config);

    $result = $sms->driver('aliyun')->gateway('action')->send($config_biz);

    dd($result);

//    array:4 [
//      "Message" => "OK"
//      "RequestId" => "27B11BA9-2A2E-4D64-AC7F-CE8CDB4386A2"
//      "BizId" => "824800563362009295^0"
//      "Code" => "OK"
//    ]
}

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Recently: every ~0 days

Total

11

Last Release

2488d ago

Major Versions

v0.3.2 → v1.02019-07-17

PHP version history (2 changes)v0.1PHP &gt;=5.3

v0.1.2PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/52cd12f9914a96a4b0a61162d8c74b2a8dbd4965611e3bd11845fe9a0f4e9a2b?d=identicon)[Ndhailing](/maintainers/Ndhailing)

---

Top Contributors

[![Ndhailing](https://avatars.githubusercontent.com/u/22056984?v=4)](https://github.com/Ndhailing "Ndhailing (12 commits)")

### Embed Badge

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

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

###  Alternatives

[minishlink/web-push

Web Push library for PHP

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

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

682104.9k7](/packages/guanguans-notify)

PHPackages © 2026

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