Download the PHP package zoe/yii2-telsmser without Composer
On this page you can find all versions of the php package zoe/yii2-telsmser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-telsmser
yii2-smser
Send text messages with api of SMS platform
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Usage
- Let 's add into Component config in your main config file
use in phpfile Yii::$app->smser->sendSMS('手机号码', '短信内容');
'''reference in the view'''
Countdown with jquery
<script type="text/javascript">
var wait=60;
function time(o) {//o为按钮对象
if (wait == 0) {
o.removeAttribute("disabled");
o.value="免费获取短信动态码";
wait = 60;
} else {
o.setAttribute("disabled", true); //倒计时中,禁止点击按钮
o.value= wait + "秒后重新发送";
wait--;
setTimeout(function() { time(o);}, 1000);
}
</script>
All versions of yii2-telsmser with dependencies
PHP Build Version
Package Version
Requires
yiisoft/yii2 Version
*
The package zoe/yii2-telsmser contains the following files
Loading the files please wait ....