alexeevdv / yii2-sms
This extension allows SMS sending via different SMS providers
Installs: 11 159
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ^2.0
- yiisoft/yii2-httpclient: ^2.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-29 05:10:39 UTC
README
This extension allows SMS sending via different SMS providers
Installation:
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist alexeevdv/yii2-sms "~1.0"
or add
"alexeevdv/yii2-sms": "~1.0"
to the require section of your composer.json.
Configuration:
use alexeevdv\sms\provider\SmsRuProvider;
use alexeevdv\sms\Sms;
//...
'components' => [
'sms' => [
'class' => Sms::class,
'provider' => [
'class' => SmsRuProvider::class,
'apiId' => '123456789',
],
],
],
//...
Usage:
$result = Yii::$app->sms->send('1234567890', 'Hi there!');