pashkinz92/yii2-epochtasms

Send SMS by epochtasms

Maintainers

Package info

github.com/Pashkinz92/yii2-epochtasms

Type:yii2-extension

pkg:composer/pashkinz92/yii2-epochtasms

Statistics

Installs: 31 820

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.1.1 2016-07-06 16:37 UTC

This package is auto-updated.

Last update: 2026-03-01 00:22:20 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');