2017 © Pedro Peláez
 

yii2-extension yii2-smser

Yii2 SMS extension

image

lkk/yii2-smser

Yii2 SMS extension

  • Thursday, July 28, 2016
  • by lkk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

yii2-smser

Yii2 SMS extension (短信扩展), (*1)

Installation

The preferred way to install this extension is through composer. Check the composer.json for this extension's requirements and dependencies., (*2)

To install, either run, (*3)

$ php composer.phar require lkk/yii2-smser "*"

or add, (*4)

"lkk/yii2-smser": "*"

to the require section of your composer.json file., (*5)

Usage

return [
    'components' => [
        'smser' => [
            'class' => 'lkk\smser\HuyiSmser',
            'username' => 'username',
            'password' => 'password',
        ]
    ],
];

OR, (*6)

return [
    'components' => [
        'smser' => [
            'class' => 'lkk\smser\HuyiSmser',
            'apikey' => 'wcJRH2mh7BbfIsaWLD4QCbllCaVpZNIp', // 请替换成您的apikey
        ]
    ],
];
Yii::$app->smser->send('13000000000', '短信内容');

License

yii2-smser is released under the BSD 3-Clause License. See the bundled LICENSE for details., (*7)

The Versions

28/07 2016

dev-master

9999999-dev https://github.com/lkk/yii2-smser

Yii2 SMS extension

  Sources   Download

MIT

The Requires

 

by Avatar caige

plugin extension yii2 sms smser