Skip to content

mrs2000/yii2-sms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii2-sms

Extension for sending SMS

Latest Stable Version PHP Total Downloads

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist mrssoft/yii2-sms "*"

or add

"mrssoft/yii2-sms": "*"

to the require section of your composer.json file.

Usage

Configuration:

'components' => [
    ...
    'sms' => [
        'class' => 'mrssoft\sms\drivers\tele2\Sms',
        'login' => '',
        'password' => '******',
        'naming' => 'BRAND',
    ],
    ...
    'sms' => [
        'class' => 'mrssoft\sms\drivers\mts\Sms',
        'token' => '',
        'naming' => 'BRAND',
    ],
    ....
]

Usage:

Yii::$app->sms->sendMessage('Message', '79830000000');
Yii::$app->sms->sendMessages('Message', ['79830000000', '79830000001']);

About

Extension for sending SMS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages