zelenin/yii2-sms_ru Yii2 extension for sms.ru

smssms.ru

yii2-sms_ru

Yii2 extension for sms.ru

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>' );

Full methods list

Author

Aleksandr Zelenin, e-mail: aleksandr@zelenin.me

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



0.0.3 is the latest of 2 releases



MIT license
Stats
14 github stars & 7 github forks
1 downloads in the last day
77 downloads in the last 30 days
3849 total downloads