2017 © Pedro Peláez
 

yii2-extension yii2-sms

This extension is using for works with different sms services

image

strong2much/yii2-sms

This extension is using for works with different sms services

  • Sunday, November 22, 2015
  • by strong2much
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 13 % Grown

The README.md

yii2-sms

This extension is using for works with different sms services., (*1)

Installation

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!');

The Versions

22/11 2015

dev-master

9999999-dev https://github.com/strong2much/yii2-sms.git

This extension is using for works with different sms services

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 sms sms.ru