Skip to content

Slauta/yii2-sms-ru

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii2-sms-ru

Yii2 wrapper for sms.ru API

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

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

to the require section of your composer.json file.

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;

About

Yii2 wrapper for sms.ru web service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%