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 3w 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 41% 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

2533d 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://avatars.githubusercontent.com/u/22056984?v=4)[Ndhailing](/maintainers/Ndhailing)[@Ndhailing](https://github.com/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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[guanguans/notify

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

687111.2k8](/packages/guanguans-notify)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

252143.0k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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