Skip to content

sem-soft/yii2-smsru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 component for sending SMS messages via SMS.RU service

Install by composer

composer require sem-soft/yii2-smsru

Or add this code into require section of your composer.json and then call composer update in console

"sem-soft/yii2-smsru": "*"

Usage

In configuration file do

return[
  ...
  'components' => [
      ...
      'sms' =>  [
        'class' =>  'sem\smsru\Sms',
        'api_id'=>  '<api_code_hash>',
        'oneSmsCost'=>	0.94
      ],
      ...
  ],
  ...
];

In code use example

$smsResponse = Yii::$app->sms->send("8903XXXXXXX",  "Hello, Guy!");

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages