strong2much/yii2-sms

This extension is using for works with different sms services

Installs: 15

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2015-11-22 11:41 UTC

This package is auto-updated.

Last update: 2024-11-05 07:11:11 UTC


README

This extension is using for works with different sms services.

Installation

Install package by composer

{
    "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

'sms' => [
    'class' => 'strong2much\sms\SmsManager'
    'serviceConfig' => [
        'class' => 'strong2much\sms\services\SmsRuService',
        'apiId' => '',
    ]
]

Now you can simple use it like so:

$sms = Yii::$app->sms->getService();
$response = $sms->send('+79990005555', 'Hello, world!');

//or just simle use
$response = Yii::$app->sms->send('+79990005555', 'Hello, world!');