Send SMS by epochtasms
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.
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');