zelenin / yii2-sms_ru
Yii2 extension for sms.ru
Installs: 3 859
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 6
Forks: 7
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- yiisoft/yii2: *
- zelenin/smsru: 1.4.2
This package is not auto-updated.
Last update: 2017-05-30 11:06:46 UTC
README
Installation
Composer
The preferred way to install this extension is through Composer.
Either run
php composer.phar require zelenin/yii2-sms_ru "dev-master"
or add
"zelenin/yii2-sms_ru": "dev-master"
to the require section of your composer.json
Add code in your components section of application configuration:
'sms' => [
'class' => 'Zelenin\yii\extensions\Sms',
'api_id' => '<api_id>'
],
or:
'sms' => [
'class' => 'Zelenin\yii\extensions\Sms',
'api_id' => '<api_id>',
'login' => '<login>',
'password' => '<password>'
],
Usage
SMS sending:
\Yii::$app->sms->sms_send( '<number>', '<text>' );
Author
Aleksandr Zelenin, e-mail: aleksandr@zelenin.me