dev-master
9999999-dev https://github.com/strong2much/yii2-sms.gitThis extension is using for works with different sms services
BSD-3-Clause
The Requires
- php >=5.4
- yiisoft/yii2 *
yii2 sms sms.ru
Wallogit.com
2017 © Pedro Peláez
This extension is using for works with different sms services
This extension is using for works with different sms services., (*1)
Install package by composer, (*2)
{
"require": {
"strong2much/yii2-sms": "dev-master"
}
}
Or
$ composer require strong2much/yii2-sms "dev-master"
Use the following code in your configuration file. You can use different services, (*3)
'sms' => [
'class' => 'strong2much\sms\SmsManager'
'serviceConfig' => [
'class' => 'strong2much\sms\services\SmsRuService',
'apiId' => '',
]
]
Now you can simple use it like so:, (*4)
$sms = Yii::$app->sms->getService();
$response = $sms->send('+79990005555', 'Hello, world!');
//or just simle use
$response = Yii::$app->sms->send('+79990005555', 'Hello, world!');
This extension is using for works with different sms services
BSD-3-Clause
yii2 sms sms.ru