Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexeevdv/yii2-sms-ru
[DEPRECATED]
https://github.com/alexeevdv/yii2-sms-ru
Last synced: 3 months ago
JSON representation
[DEPRECATED]
- Host: GitHub
- URL: https://github.com/alexeevdv/yii2-sms-ru
- Owner: alexeevdv
- License: mit
- Created: 2015-09-29T21:27:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-28T14:27:17.000Z (about 7 years ago)
- Last Synced: 2024-08-08T16:11:56.139Z (6 months ago)
- Language: PHP
- Homepage: https://github.com/alexeevdv/yii2-sms
- Size: 4.88 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
yii2-sms-ru
===========Yii2 wrapper for [sms.ru](https://sms.ru/) API
## Installation
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
$ php composer.phar require alexeevdv/yii2-sms-ru "dev-master"
```or add
```
"alexeevdv/yii2-sms-ru": "dev-master"
```to the ```require``` section of your `composer.json` file.
## Configuration
### Through application component
```php
"components" => [
//...
"sms" => [
"class" => "alexeevdv\sms\ru\Client",
"api_id" => "YOUR_API_ID",
],
//...
],
```## Usage
```php
use alexeevdv\sms\ru\Sms;
$response = \Yii::$app->sms->send(new Sms([
"to" => "+9530000000",
"text" => "Hello my friend!",
]));echo $response->code;
```