tongv/aliyun-dysms

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

维护者

详细信息

github.com/tongv/AlidySms

主页

源代码

安装: 67

依赖: 1

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 6

类型:package

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

This package is not auto-updated.

Last update: 2024-10-02 04:40:32 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']);