PHPackages                             tongso/notice-message - 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. tongso/notice-message

ActiveLibrary

tongso/notice-message
=====================

适用于thinkphp6的短信通知消息发送插件

1.0.3(5y ago)798Apache-2.0PHPPHP &gt;=7.1.0

Since Oct 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/tongso/notice-message)[ Packagist](https://packagist.org/packages/tongso/notice-message)[ Docs](https://www.mrbyte.cn/)[ RSS](/packages/tongso-notice-message/feed)WikiDiscussions main Synced yesterday

READMEChangelog (4)Dependencies (4)Versions (3)Used By (0)

notice-message
==============

[](#notice-message)

适用于Thinkphp6的短消息发送扩展

目前已支持：Aliyun、聚合数据短信发送 欢迎提交PR和提建议

如果需要支持更多服务商接口或者有问题可以联系

安装扩展
----

[](#安装扩展)

```
composer require tongso/notice-message
```

// 安装之后会在config目录里自动生成noticeMessage.php配置文件

```
return [
    //手机短信
    "shortMessage" => [
        //当前使用的短信接口服务商
        "defaultVendor" => "aliyun",
        //各服务商接口参数配置，每个服务商接口验证参数可能不一样
        "apiConfigs" => [
            "aliyun" => [
                "accessKeyId" => '',
                "accessSecret" => '',
                "signName" => 'MrByte.cn',
                "regionId" => 'cn-hangzhou',//阿里默认值
                "host" => 'dysmsapi.aliyuncs.com'//阿里默认值
            ],
            "juhe" => [
                "apiKey" => ''
            ]
        ]
    ]
];
```

使用方法
----

[](#使用方法)

```
NoticeMessage::sendSms("手机号码", "短信模板ID", "短信模板中的变量值", "短信服务商名称");
```

调用参数说明
------

[](#调用参数说明)

```
1、短信模板中的变量值：是一个key为变量名值为变量值的数组，例：array('code' => '3420')

2、短信服务商名称：目前只支持aliyun和juhe

```

想要完善的功能
-------

[](#想要完善的功能)

1、支持队列发送

2、支持邮件发送

3、支持日志功能

4、支持随机验证码的生成和验证

注意事项
----

[](#注意事项)

1、聚合数据的接口短信验证码只能传入4-6位的数字，不然会返回模板变量错误

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

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

Total

2

Last Release

2020d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26198568?v=4)[Anthony Lukin](/maintainers/lukin)[@lukin](https://github.com/lukin)

---

Top Contributors

[![tongso](https://avatars.githubusercontent.com/u/24431418?v=4)](https://github.com/tongso "tongso (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tongso-notice-message/health.svg)

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

###  Alternatives

[topthink/think

the new thinkphp framework

8.0k1.2M13](/packages/topthink-think)[alibabacloud/sdk

Alibaba Cloud SDK for PHP - Easier to Use Alibaba Cloud in your PHP project

5282.1M45](/packages/alibabacloud-sdk)[zhongshaofa/easyadmin

基于ThinkPHP6.0和layui的快速开发的后台管理系统。

6609.3k](/packages/zhongshaofa-easyadmin)[zoujingli/think-library

Library for ThinkAdmin

8569.8k18](/packages/zoujingli-think-library)[topthink/think-multi-app

thinkphp multi app support

26813.1k50](/packages/topthink-think-multi-app)[topthink/think-filesystem

The ThinkPHP 8.0 Filesystem Package

18595.2k54](/packages/topthink-think-filesystem)

PHPackages © 2026

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