emnabs/yii2-smser

Yii2 Smser Component

Installs: 24

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.0 2017-05-31 08:04 UTC

This package is auto-updated.

Last update: 2024-11-16 22:37:44 UTC


README

Smser is a component based sms solution for Yii2.It is released under the BSD 3-Clause license.

Latest Stable Version Total Downloads License

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist emnabs/yii2-smser "*"

or add

"emnabs/yii2-smser": "*"

to the require section of your composer.json.

Usage

To use this extension, you have to configure the Connection class in your application configuration:

//configure component:
return [
    //....
    'components' => [
	//....
        'smser' => [
            'class' => 'emhome\smser\Smser',
        ],
	//....
    ]
];

Usage example

Yii::$app->smser->compose()
	->setMobile(['手机号码'])
        ->setContent('短信内容')
        ->send();

包含接口

License

yii2-smser is released under the BSD 3-Clause License. See the bundled LICENSE.md for details.