yii2-smser
Send text messages with api of SMS platform, (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require liangzoe/yii2-mobilesmser "*"
or add, (*4)
"liangzoe/yii2-mobilesmser": "*"
to the require section of your composer.json
file., (*5)
Usage
- Let 's add into Component config in your main config file
````
'smser' => [
'smser' => [
'class' => 'liangzoe\mobilesmser\TextSmser',
'url' => '',
'username' => '',
'password' => '',
],
],, (*6)
use in phpfile
Yii::$app->smser->sendSMS('手机号码', '短信内容');
, (*7)
'''reference in the view'''
Countdown with jquery, (*8)