Next steps will guide you through the process of installing yii2-admin using composer. Installation is a quick and easy three-step process.
Either run
composer require --prefer-dist xutl/yii2-sms
or add
"xutl/yii2-sms": "~2.0.0"
to the require
section of your composer.json.
Add following lines to your main configuration file:
'modules' => [
'sms' => [
'class' => 'xutl\sms\clients\Aliyun',
//etc
],
],
继承 xutl\sms\SendJob
实现你的短信发送个,在SendJob子类中设定模板什么的。发送直接推给队列了。由队列负责发送。
This is released under the MIT License. See the bundled LICENSE.md for details.