Skip to content

xutl/yii2-sms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SMS Extension for Yii 2

Latest Stable Version Total Downloads Reference Status Build Status Dependency Status License

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.