Yii2 turbosms
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist avator/yii2-turbosms "*"
or add
"avator/yii2-turbosms": "*"
to the require section of your composer.json
file.
Add the following in your config:
<?php
...
'components'=>array(
'turbosms' => [
'class' => 'avator\turbosms\Turbosms',
'sender' => 'your_sender',
'login' => 'your_login',
'password' => 'your_password',
],
...
),
...
Once the extension is installed, simply use it in your code by :
<?php Yii::$app->turbosms->send('test', '+380XXXXXXXXX'); ?>
yii2-turbosms is released under the BSD 3-Clause License. See the bundled LICENSE.md
for details.