sersid/yii2-smsaero Integration of SMS-messages to yii2 application

extensionsms

Yii2 Sms Aero

https://smsaero.ru/api/v1/ Integration of SMS-messages to yii2 application

Installation

One

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist sersid/yii2-smsaero "dev-master"

or add

"sersid/yii2-smsaero": "dev-master"

to the require section of your composer.json file.

Two

$config = [
    ...
    'components' => [
        ...
        'sms' => [
            'class' => 'sersid\smsaero\SmsAero',
            'user' => 'username',
            //'password' => '*****',
            'api_key' => 'paste_your_api_key' // use api_key or password
            'sender' => 'SMS Aero', // default sender
        ],
    ]
];

Three

Read the documentation http://smsaero.ru/api/

Usage

Once the extension is installed, simply use it in your code by :

Send message

Yii::$app->sms->send('798765543210', 'Message'); //@see Send message method

Checking the status of the sent message

Yii::$app->sms->status(123456);

Balance

Yii::$app->sms->balance(); // ['balance' => '30.00']

Available senders

Yii::$app->sms->senders(); // ['INFORM', 'MY_SENDER', '...']

Request new signature

Yii::$app->sms->sign('new sender');

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.1.0 is the latest of 2 releases



BSD-3-Clause license
Stats
1 github stars & 1 github forks
0 downloads in the last day
0 downloads in the last 30 days
492 total downloads