xutl / yii2-sms
The sms extension for the Yii framework
Installs: 1 362
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2-httpclient: ~2.0.5
- yiisoft/yii2-queue: ~2.0.0
README
Installation
Next steps will guide you through the process of installing yii2-admin using composer. Installation is a quick and easy three-step process.
Step 1: Install component via composer
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.
Step 2: Configuring your application
Add following lines to your main configuration file:
'modules' => [ 'sms' => [ 'class' => 'xutl\sms\clients\Aliyun', //etc ], ],
Step 3: Configuring your sms template
继承 xutl\sms\SendJob
实现你的短信发送个,在SendJob子类中设定模板什么的。发送直接推给队列了。由队列负责发送。
License
This is released under the MIT License. See the bundled LICENSE.md for details.