ignatenkovnikita/yii2-sms-receiver

Client for service sms receiver

0.0.3 2016-07-23 12:46 UTC

This package is auto-updated.

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


README

Client for service sms receiver

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-receiver "*"

or add

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

to the require section of your composer.json file.

Usage

Add this to your main configuration's components array:

'smsReceiver' => [
            'class' => \ignatenkovnikita\smssender\ClientSmsReceiver::className(),
            'gate' => your_gate,
            'credentials' => [
                'ID' => your_id_,
                'name' => yout_name_,
                'password' => your_pasword
            ],
            'maxLimit' => your_limit
        ],

Typical component usage

Yii::$app->smsReceiver->getMessages();
Yii::$app->smsReceiver->sendMessage(your_short, your_phone, your_message);