https://github.com/ignatenkovnikita/yii2-refill-mobile
Client for service refill mobile
https://github.com/ignatenkovnikita/yii2-refill-mobile
Last synced: 2 months ago
JSON representation
Client for service refill mobile
- Host: GitHub
- URL: https://github.com/ignatenkovnikita/yii2-refill-mobile
- Owner: ignatenkovnikita
- Created: 2016-03-24T09:26:25.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-06T17:53:30.000Z (about 9 years ago)
- Last Synced: 2025-01-28T21:28:15.194Z (4 months ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Client for service refill mobile
================================
Client for service refill mobile[](https://packagist.org/packages/ignatenkovnikita/yii2-refill-mobile) [](https://packagist.org/packages/ignatenkovnikita/yii2-refill-mobile) [](https://packagist.org/packages/ignatenkovnikita/yii2-refill-mobile) [](https://packagist.org/packages/ignatenkovnikita/yii2-refill-mobile)
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-refill-mobile "*"
```or add
```
"ignatenkovnikita/yii2-refill-mobile": "*"
```to the require section of your `composer.json` file.
Usage
-----Add this to your main configuration's components array:
```php
'refillMobile' => [
'class' => \ignatenkovnikita\refillmobile\ClientRefill::className(),
'url' => your_url,
'user' => your_user,
'pass' => your_pass,
'actionId' => your_actionId],
```
Typical component usage
-----------------------
```php
Yii::$app->refillMobile->state(your_id);
Yii::$app->refillMobile->refill(7 your_phone, your summ);
```