https://github.com/ignatenkovnikita/yii2-sms-receiver
Client for service sms receiver
https://github.com/ignatenkovnikita/yii2-sms-receiver
Last synced: 3 months ago
JSON representation
Client for service sms receiver
- Host: GitHub
- URL: https://github.com/ignatenkovnikita/yii2-sms-receiver
- Owner: ignatenkovnikita
- Created: 2016-03-24T11:42:46.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-31T23:00:06.000Z (about 8 years ago)
- Last Synced: 2025-02-03T13:31:29.577Z (4 months ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Client for service sms receiver
===============================
Client for service sms receiver[](https://packagist.org/packages/ignatenkovnikita/yii2-sms-receiver) [](https://packagist.org/packages/ignatenkovnikita/yii2-sms-receiver) [](https://packagist.org/packages/ignatenkovnikita/yii2-sms-receiver) [](https://packagist.org/packages/ignatenkovnikita/yii2-sms-receiver)
Installation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
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:```php
'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
-----------------------
```php
Yii::$app->smsReceiver->getMessages();
Yii::$app->smsReceiver->sendMessage(your_short, your_phone, your_message);
```