ignatenkovnikita/yii2-sms-sender

Client for service sms sender

0.0.1 2016-03-25 17:55 UTC

This package is auto-updated.

Last update: 2024-10-29 04:36:33 UTC


README

Client for service sms sender

Latest Stable Version Total Downloads Latest Unstable Version License

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist ignatenkovnikita/yii2-sms-sender "*"

or add

"ignatenkovnikita/yii2-sms-sender": "*"

to the require section of your composer.json file.

Usage

Add this to your main configuration's components array:

'smsSender' => [
            'class' => \ignatenkovnikita\smssender\ClientSmsSender::className(),
            'gate' => your_gate,
            'sender' => your_name_sender,
            'credentials' => [
                'ID' => your_id_,
                'name' => yout_name_,
                'password' => your_pasword
            ]
        ],

Typical component usage

Yii::$app->smsSender->send(7 your_phone, your_message_text);
Yii::$app->smsSender->state(your_message_id_response);