2017 © Pedro Peláez
 

yii2-extension yii2-sms-ru

Yii2 wrapper for sms.ru API

image

alexeevdv/yii2-sms-ru

Yii2 wrapper for sms.ru API

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 50 % Grown

The README.md

yii2-sms-ru

Yii2 wrapper for sms.ru API, (*1)

Installation

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

Either run, (*3)

$ php composer.phar require alexeevdv/yii2-sms-ru "dev-master"

or add, (*4)

"alexeevdv/yii2-sms-ru": "dev-master"

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

Configuration

Through application component

"components" => [
    //...
    "sms" => [
        "class" => "alexeevdv\sms\ru\Client",
        "api_id" => "YOUR_API_ID",
    ],
    //...
],

Usage

use alexeevdv\sms\ru\Sms;
$response = \Yii::$app->sms->send(new Sms([
    "to" => "+9530000000",
    "text" => "Hello my friend!",
]));

echo $response->code;

The Versions

28/11 2017

dev-master

9999999-dev

Yii2 wrapper for sms.ru API

  Sources   Download

MIT

The Requires

 

api yii2 sms sms.ru