ignatenkovnikita / yii2-sms-sender
Client for service sms sender
Installs: 78
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-11-29 04:51:10 UTC
README
Client for service sms sender
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist ignatenkovnikita/yii2-sms-sender "*"
or add
"ignatenkovnikita/yii2-sms-sender": "*"
to the require section of your composer.json
file.
Usage
Add this to your main configuration's components array:
'smsSender' => [ 'class' => \ignatenkovnikita\smssender\ClientSmsSender::className(), 'gate' => your_gate, 'sender' => your_name_sender, 'credentials' => [ 'ID' => your_id_, 'name' => yout_name_, 'password' => your_pasword ] ],
Typical component usage
Yii::$app->smsSender->send(7 your_phone, your_message_text); Yii::$app->smsSender->state(your_message_id_response);