Download the PHP package mofing/aliyun-dysms without Composer
On this page you can find all versions of the php package mofing/aliyun-dysms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mofing/aliyun-dysms
More information about mofing/aliyun-dysms
Files in mofing/aliyun-dysms
Download mofing/aliyun-dysms
More information about mofing/aliyun-dysms
Files in mofing/aliyun-dysms
Vendor mofing
Package aliyun-dysms
Short Description DySms plugin for CakePHP
License MIT
Homepage https://www.aliyun.com/product/sms
Package aliyun-dysms
Short Description DySms plugin for CakePHP
License MIT
Homepage https://www.aliyun.com/product/sms
Please rate this library. Is it a good library?
Informations about the package aliyun-dysms
dysms
Aliyun SMS SDK for CakePHP
-
https://ak-console.aliyun.com/ 从这里找到ACCESS_ID和ACCESS_KEY ,如果没有,生成一个
- 修改/config/paths.php,最后加入阿里云访问认证,也可以把ACCESS_ID和ACCESS_KEY设置到php的环境变量中
/* 阿里云Access Key ID / putenv('ACCESS_ID=aaa');
/* 阿里云 ACCESS KEY / putenv('ACCESS_KEY=bbb');
SmsComponent中,用下面的代码来获取值
$accessKeyId = getenv("ACCESS_ID"); $accessKeySecret = getenv("ACCESS_KEY");
-
PagesController控制器中,引入DySms模块
var $components = [ 'DySms.Sms' ];
- 调用发送短信方法
public function index(){ $this->Sms->send(); }
All versions of aliyun-dysms with dependencies
PHP Build Version
Package Version
The package mofing/aliyun-dysms contains the following files
Loading the files please wait ....