2017 © Pedro Peláez
 

yii2-extension yii2-sms

This extension allows SMS sending via different SMS providers

image

alexeevdv/yii2-sms

This extension allows SMS sending via different SMS providers

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 79 % Grown

The README.md

yii2-sms

Build Status codecov PHP 5.6PHP 7.0PHP 7.1PHP 7.2PHP 7.3PHP 7.4, (*1)

This extension allows SMS sending via different SMS providers, (*2)

Installation:

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist alexeevdv/yii2-sms "~1.0"

or add, (*5)

"alexeevdv/yii2-sms": "~1.0"

to the require section of your composer.json., (*6)

Configuration:

use alexeevdv\sms\provider\SmsRuProvider;
use alexeevdv\sms\Sms;

//...
   'components' => [
       'sms' => [
           'class' => Sms::class,
           'provider' => [
               'class' => SmsRuProvider::class,
               'apiId' => '123456789',
           ],
       ],
   ],
//...

Usage:


$result = Yii::$app->sms->send('1234567890', 'Hi there!');

Supported providers:

  • sms.ru, (*7)

    Class: \alexeevdv\sms\provider\SmsRuProvider Params:, (*8)

    • apiId - Your api ID from sms.ru
  • smsc.ru, (*9)

    Class: \alexeevdv\sms\provider\SmscRuProvider Params:, (*10)

    • login - Your login from smsc.ru
    • psw - Your plain text or MD5 hashed password from smsc.ru

The Versions

01/03 2018

1.0.0

1.0.0.0

This extension allows SMS sending via different SMS providers

  Sources   Download

MIT

The Requires

 

The Development Requires

21/02 2018

dev-master

9999999-dev

This extension allows SMS sending via different SMS providers

  Sources   Download

MIT

The Requires

 

The Development Requires