tongv/aliyun-dysms

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

Installs: 69

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 6

Type:package

v1.4 2017-12-14 07:36 UTC

This package is not auto-updated.

Last update: 2025-08-20 08:53:44 UTC


README

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

https://dysms.console.aliyun.com/dysms.htm

系统要求

php >= 7.0+

laravel >= 5.5+

安装

composer require tongv/aliyun-dysms

设置配置文件

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

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

  	//id
	'ACCESS_KEY_ID'=>'',
	//秘钥
	'ACCESS_KEY_SECRET'=>'',
	//config 每个操作对应的签名和模版编号
    'CONFIG'=>[
        'register'=>['签名','SMS_115928888'],
    ],

使用

use Sms;

//短信发送成功 下面函数返回 true 反之 false
Sms::sned('13800000000','register',['code'=>'123456']);