wulacms/sms

为wulacms提供短信发送功能

v2.0 2018-10-19 09:15 UTC

This package is auto-updated.

Last update: 2024-04-15 07:15:36 UTC


README

为wulacms提供短信发送功能。默认支持创蓝阿里大于

有效时长

通过在config.php中添加sms_expire配置验证码有效期,默认为5分钟。

发送短信

    Sms::send('18049920019','短信模板编号',['arg'=>'模板需要的参数']);

使用阿里大于

使用阿里大于短信通道需要安装wula/aliyun-sms依赖:

#composer require wula/aliyun-sms