pashkinz92 / yii2-epochtasms
Send SMS by epochtasms
Package info
github.com/Pashkinz92/yii2-epochtasms
Type:yii2-extension
pkg:composer/pashkinz92/yii2-epochtasms
1.1.1
2016-07-06 16:37 UTC
Requires
- yiisoft/yii2: *
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');