2017 © Pedro Peláez
 

yii2-extension yii2-sms

Yii2 SMS extension

image

lonelythinker/yii2-sms

Yii2 SMS extension

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 21 % Grown

The README.md

yii2-sms

Yii2 SMS extension (基于yii2的短信扩展), (*1)

支持接口:, (*2)

安装

执行, (*3)

$ php composer.phar require lonelythinker/yii2-sms "*"

或者添加, (*4)

"lonelythinker/yii2-sms": "*"

composer.json 文件的require 块。, (*5)

Usage

return [
    'components' => [
    '' => [
        // 创蓝
        'class' => 'lonelythiker\\yii2\\sms\\Chuanglan',
        'username' => 'username',
        'password' => 'password',
        'useFileTransport' => false
        ]
    ],
];

OR, (*6)

return [
    'components' => [
    '' => [
        // 短信宝
        'class' => 'lonelythiker\\yii2\\sms\\Smsbao',
        'username' => 'username',
        'password' => 'password',
        'useFileTransport' => false
        ]
    ],
];

OR, (*7)

return [
    'components' => [
        '' => [
            // 中国云信
            'class' => 'lonelythiker\\yii2\\sms\\Yunxin',
            'username' => 'username',
            'password' => 'password',
            'useFileTransport' => false
        ]
    ],
];

OR, (*8)

return [
    'components' => [
        '' => [
            // 云片网
            'class' => 'lonelythiker\\yii2\\sms\\Yunpian',
            'apikey' => 'apikey',
            'useFileTransport' => false
        ]
    ],
];
Yii::$app->->send('15000000000', '短信内容');
// 发送模板短信
Yii::$app->->sendByTemplate('15000000000', ['123456'], 1);

License

yii2-sms is released under the Apache-2.0 License. See the bundled LICENSE for details., (*9)

The Versions

08/06 2018

dev-master

9999999-dev https://github.com/lonelythinker/yii2-sms

Yii2 SMS extension

  Sources   Download

BSD-3-Clause BSD 3-Clause

The Requires

 

plugin extension yii2 sms lonelythinker