pashkinz92/yii2-epochtasms

Send SMS by epochtasms

Installs: 22 823

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 1

Open Issues: 0

Type:yii2-extension

1.1.1 2016-07-06 16:37 UTC

This package is auto-updated.

Last update: 2024-03-29 03:38:00 UTC


README

Send SMS by epochtasms

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist pashkinz92/yii2-epochtasms "*"

or add

"pashkinz92/yii2-epochtasms": "*"

to the require section of your composer.json file.

Usage

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

'components' => [
...
    'epochtasms'=>[
                'class' => 'pashkinz92\epochtasms\EpochtaClass',
                'sms_key_private' => 'sms_key_private',
                'sms_key_public' => 'sms_key_public',
                'name_sender' => 'name_sender',
                'testMode' => false, //Включение тестового режима
            ],
...
],
\Yii::$app->epochtasms->sendSMS('MESSAGE', 'USER_PHONE', 'USER_FROM');