2017 © Pedro Peláez
 

library alidayu

kkk

image

cuizhaopeng/alidayu

kkk

  • Tuesday, May 15, 2018
  • by cuizhaopeng
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

alidayu

PS:阿里短信 https://github.com/cuizhaopeng/alidayu, (*1)

更新 暂无, (*2)

功能 短信发送, (*3)

环境 PHP >= 5.4 composer, (*4)

使用, (*5)

示例:, (*6)

class SendMessage{, (*7)

public function sendPhoneMessage(){

    // *** 需用户填写部分 ***

    // fixme 必填: 请参阅 https://ak-console.aliyun.com/ 取得您的AK信息
    $accessKeyId = "LTAIp75FRoFjEUf2";
    $accessKeySecret = "8tEQ1bakjiFudJTzW3D2skHGlJEW6j";
    // fixme 必填: 短信接收号码
    $params["PhoneNumbers"] = $_POST['phone_numbers'];

    // fixme 必填: 短信签名,应严格按"签名名称"填写,请参考: https://dysms.console.aliyun.com/dysms.htm#/develop/sign
    $params["SignName"] = "短信签名";

    // fixme 必填: 短信模板Code,应严格按"模板CODE"填写, 请参考: https://dysms.console.aliyun.com/dysms.htm#/develop/template
    $params["TemplateCode"] = "SMS_142946435";

    // fixme 可选: 设置模板参数, 假如模板中存在变量需要替换则为必填项
    $params['TemplateParam'] = Array (
        "username" => $_POST['username'],
        "post" => $_POST['post'],
        "invitation_time" => $_POST['invitation_time']
    );

    $sendSms = new sendSms();
    $res = $sendSms->send($accessKeyId,$accessKeySecret,$params);
    return $res;
}

}, (*8)

帮助, (*9)

意见、BUG反馈: https://github.com/cuizhaopeng/alidayu/issues, (*10)

支持, (*11)

官方网址: https://www.alidayu.com/, (*12)

官方API文档: https://api.alidayu.com/doc2/apiList.htm, (*13)

composer: https://getcomposer.org/, (*14)

License, (*15)

MIT, (*16)

The Versions

15/05 2018

1.0.0.x-dev

1.0.0.9999999-dev

kkk

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by John

15/05 2018

dev-master

9999999-dev

kkk

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by John

15/05 2018

dev-alibranch1

dev-alibranch1

kkk

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by John