pashkinz92 / yii2-epochtasms
Send SMS by epochtasms
Installs: 25 960
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Type:yii2-extension
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');