ignatenkovnikita / yii2-sms-receiver
Client for service sms receiver
Installs: 94
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-10-29 04:36:32 UTC
README
Client for service sms receiver
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist ignatenkovnikita/yii2-sms-receiver "*"
or add
"ignatenkovnikita/yii2-sms-receiver": "*"
to the require section of your composer.json
file.
Usage
Add this to your main configuration's components array:
'smsReceiver' => [ 'class' => \ignatenkovnikita\smssender\ClientSmsReceiver::className(), 'gate' => your_gate, 'credentials' => [ 'ID' => your_id_, 'name' => yout_name_, 'password' => your_pasword ], 'maxLimit' => your_limit ],
Typical component usage
Yii::$app->smsReceiver->getMessages(); Yii::$app->smsReceiver->sendMessage(your_short, your_phone, your_message);