2017 © Pedro Peláez
 

cakephp-plugin aliyun-dysms

DySms plugin for CakePHP

image

mofing/aliyun-dysms

DySms plugin for CakePHP

  • Wednesday, November 29, 2017
  • by wcj343169893
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 29 % Grown

The README.md

dysms

Aliyun SMS SDK for CakePHP

  1. https://ak-console.aliyun.com/ 从这里找到ACCESS_ID和ACCESS_KEY ,如果没有,生成一个, (*1)

  2. 修改/config/paths.php,最后加入阿里云访问认证,也可以把ACCESS_ID和ACCESS_KEY设置到php的环境变量中, (*2)

/** 阿里云Access Key ID */ putenv('ACCESS_ID=aaa');, (*3)

/** 阿里云 ACCESS KEY */ putenv('ACCESS_KEY=bbb');, (*4)

SmsComponent中,用下面的代码来获取值, (*5)

$accessKeyId = getenv("ACCESS_ID"); $accessKeySecret = getenv("ACCESS_KEY");, (*6)

  1. PagesController控制器中,引入DySms模块, (*7)

    var $components = [ 'DySms.Sms' ];, (*8)

  2. 调用发送短信方法, (*9)

    public function index(){ $this->Sms->send(); }, (*10)

The Versions

29/11 2017

dev-master

9999999-dev https://www.aliyun.com/product/sms

DySms plugin for CakePHP

  Sources   Download

MIT

The Requires

 

sms sdk aliyun

29/11 2017

v1.1

1.1.0.0 https://www.aliyun.com/product/sms

DySms plugin for CakePHP

  Sources   Download

MIT

The Requires

 

sms sdk aliyun

29/11 2017

v1.0

1.0.0.0 https://www.aliyun.com/product/sms

DySms plugin for CakePHP

  Sources   Download

MIT

The Requires

 

sms sdk aliyun