PHPackages                             laramall/aliyun-dysms - 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. laramall/aliyun-dysms

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

laramall/aliyun-dysms
=====================

新版阿里大于短信接口 for laravel5.5+

v1.0.8(8y ago)212.1k↓50%6[3 issues](https://github.com/bluetoothswh/AlidySms/issues)1MITPHPPHP &gt;=7.0

Since Oct 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/bluetoothswh/AlidySms)[ Packagist](https://packagist.org/packages/laramall/aliyun-dysms)[ Docs](https://github.com/bluetoothswh/AlidySms.git)[ RSS](/packages/laramall-aliyun-dysms/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (10)Used By (1)

AlidySms
========

[](#alidysms)

新版阿里大于短信接口的Laravel组件 for Laravel 5.5+

网址：[larashuo.com](https://larashuo.com)

[![](https://camo.githubusercontent.com/2ebaaf7712289190038117a9f302a077d2758149e7dd1c106005c6c986d1f49e/68747470733a2f2f6c6172617669702e636f6d2f696d616765732f616c696479736d732e706e67)](https://camo.githubusercontent.com/2ebaaf7712289190038117a9f302a077d2758149e7dd1c106005c6c986d1f49e/68747470733a2f2f6c6172617669702e636f6d2f696d616765732f616c696479736d732e706e67)

系统要求
====

[](#系统要求)

```
php >= 7.0+

laravel >= 5.5+

```

安装
==

[](#安装)

```
composer require laramall/aliyun-dysms

```

设置配置文件
======

[](#设置配置文件)

```
php artisan vendor:publish --provider="LaraMall\AlidySms\AlidySmsServiceProvider"

修改 config/sms.php 中的阿里大于短信相关参数

  	//id
	'ACCESS_KEY_ID'=>'',
	//秘钥
	'ACCESS_KEY_SECRET'=>'',
	//短信签名
	'signName'=>'',
	//短信模板编号
	'templateCode'=>'',
	//短信模板中变量字段
	'field'=>'number',
	//要发送的短信内容
	'content'=>rand(1000,9999),

```

使用
==

[](#使用)

[![](https://camo.githubusercontent.com/e94e193ad3e62e755bd9fc78cf1beefdffd9c9b49b133e825dac9281e3cb0c11/687474703a2f2f6f78356477693778692e626b742e636c6f7564646e2e636f6d2f6769746875622f736d732d74702e706e67)](https://camo.githubusercontent.com/e94e193ad3e62e755bd9fc78cf1beefdffd9c9b49b133e825dac9281e3cb0c11/687474703a2f2f6f78356477693778692e626b742e636c6f7564646e2e636f6d2f6769746875622f736d732d74702e706e67)

```
use Sms;

//短信发送成功 下面函数返回 true 反之 false
Sms::put('phone','13800000000')->send();

```

所有参数完全自定义发送短信模式
===============

[](#所有参数完全自定义发送短信模式)

```
Sms::put('phone',$phone) //接受短信的手机号
   ->put('signName',$signName) //短信签名
   ->put('templateCode',$templateCode) //短信模板编号
   ->put('filed',$field) //短信模板中的变量字段
   ->put('content',$content) //短信中的变量的值 也就是验证码的内容
   ->send(); //发送短信

```

如果在配置文件config/sms.php中已经设置了

短信签名 + 短息模板编号 + 短信模板中字段变量 + 短信发送内容

可以使用简约模式发送短信

```
use Sms;
Sms::put('phone',$phone)->send();

```

验证短信已写入表单验证规则

假设表单中短信验证码的字段为 code

```
$rules = ['code'=>'required|sms'];

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 97.6% 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 ~8 days

Total

9

Last Release

3057d ago

### Community

Maintainers

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

---

Top Contributors

[![bluetoothswh](https://avatars.githubusercontent.com/u/7559687?v=4)](https://github.com/bluetoothswh "bluetoothswh (40 commits)")[![bitqiu](https://avatars.githubusercontent.com/u/4955106?v=4)](https://github.com/bitqiu "bitqiu (1 commits)")

---

Tags

laravel55aliyun dysms sdk

### Embed Badge

![Health badge](/badges/laramall-aliyun-dysms/health.svg)

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

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

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[eduardokum/laravel-mail-auto-embed

Library for embed images in emails automatically

1702.0M5](/packages/eduardokum-laravel-mail-auto-embed)

PHPackages © 2026

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