PHPackages                             mangdin/thinkphp5.1-aliyunsms - 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. mangdin/thinkphp5.1-aliyunsms

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

mangdin/thinkphp5.1-aliyunsms
=============================

thinkphp5.1 阿里云 大于短信权限核心文件

1.4(7y ago)0116Apache-2.0PHP

Since Jul 25Pushed 7y agoCompare

[ Source](https://github.com/mangdin/thinkphp5.1-aliyunsms)[ Packagist](https://packagist.org/packages/mangdin/thinkphp5.1-aliyunsms)[ RSS](/packages/mangdin-thinkphp51-aliyunsms/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

thinkphp5.1-aliyunsms
=====================

[](#thinkphp51-aliyunsms)

thinkphp5.1 阿里云 大于短信

将目录下的aliyun\_dysms.php拷贝到config目录

示例代码：

```

/**
     * 阿里云 大于短信 发送接口
     * @param $mobile 手机号码
     * @param $signname 签名
     * @param $templatecode  短信模板ID
     * @param array $templateparam  短信模板 传入参数
     * @return \think\response\Json
     */
    public function sendsms($mobile,$signname,$templatecode,$templateparam=array()){
        $templateparam = array(
            "code" => rand(100000,999999)
        );
        $sendsms = new \mangdin\alidysms\sendSms();
        $msg = json_decode($sendsms->sendsms($mobile, $signname, $templatecode, $templateparam),true);
        if ($msg['Code'] == 'OK'){
            \think\facade\Session::set('smscode',$templateparam['code']);
            return json(['code'=>200,'icon'=>6,'msg'=>'发送成功']);
        }else{
            return json(['code'=>500,'icon'=>5,'msg'=>$msg['Message']]);
        }
    }

```

可以放到公共函数全局调用

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity66

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

Total

5

Last Release

2848d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/41657311?v=4)[mangdin](/maintainers/mangdin)[@mangdin](https://github.com/mangdin)

---

Top Contributors

[![mangdin](https://avatars.githubusercontent.com/u/41657311?v=4)](https://github.com/mangdin "mangdin (11 commits)")

### Embed Badge

![Health badge](/badges/mangdin-thinkphp51-aliyunsms/health.svg)

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

###  Alternatives

[bennettstone/magicmin

MagicMin is a PHP based javascript and stylesheet minification and merging class designed to generate minified, merged, and automatically updating files to simplify the process of minified file usage and updating when going between production and development environments.

495.4k](/packages/bennettstone-magicmin)

PHPackages © 2026

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