https://github.com/ignatenkovnikita/yii2-sms-sender
Client for service sms sender
https://github.com/ignatenkovnikita/yii2-sms-sender
Last synced: 2 months ago
JSON representation
Client for service sms sender
- Host: GitHub
- URL: https://github.com/ignatenkovnikita/yii2-sms-sender
- Owner: ignatenkovnikita
- Created: 2016-03-24T11:41:57.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-07T15:10:58.000Z (about 7 years ago)
- Last Synced: 2025-02-03T13:31:30.888Z (4 months ago)
- Language: PHP
- Size: 2.93 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 sender
=============================
Client for service sms sender[](https://packagist.org/packages/ignatenkovnikita/yii2-sms-sender) [](https://packagist.org/packages/ignatenkovnikita/yii2-sms-sender) [](https://packagist.org/packages/ignatenkovnikita/yii2-sms-sender) [](https://packagist.org/packages/ignatenkovnikita/yii2-sms-sender)
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-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:
```php
'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
-----------------------
```php
Yii::$app->smsSender->send(7 your_phone, your_message_text);
Yii::$app->smsSender->state(your_message_id_response);
```