Download the PHP package mangdin/thinkphp5.1-aliyunsms without Composer
On this page you can find all versions of the php package mangdin/thinkphp5.1-aliyunsms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mangdin/thinkphp5.1-aliyunsms
More information about mangdin/thinkphp5.1-aliyunsms
Files in mangdin/thinkphp5.1-aliyunsms
Download mangdin/thinkphp5.1-aliyunsms
More information about mangdin/thinkphp5.1-aliyunsms
Files in mangdin/thinkphp5.1-aliyunsms
Vendor mangdin
Package thinkphp5.1-aliyunsms
Short Description thinkphp5.1 阿里云 大于短信权限核心文件
License Apache-2.0
Package thinkphp5.1-aliyunsms
Short Description thinkphp5.1 阿里云 大于短信权限核心文件
License Apache-2.0
Please rate this library. Is it a good library?
Informations about the package thinkphp5.1-aliyunsms
thinkphp5.1-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']]); } }
可以放到公共函数全局调用
All versions of thinkphp5.1-aliyunsms with dependencies
PHP Build Version
Package Version
No informations.
The package mangdin/thinkphp5.1-aliyunsms contains the following files
Loading the files please wait ....