ignatenkovnikita/yii2-refill-mobile

Client for service refill mobile

0.0.1 2016-03-28 11:17 UTC

This package is auto-updated.

Last update: 2024-11-29 05:09:25 UTC


README

Client for service refill mobile

Latest Stable Version Total Downloads Latest Unstable Version License

Installation

The preferred way to install this extension is through composer.

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:

'refillMobile' => [
            'class' =>  \ignatenkovnikita\refillmobile\ClientRefill::className(),
            'url' => your_url,
            'user' => your_user,
            'pass' => your_pass,
            'actionId' => your_actionId

        ],

Typical component usage

Yii::$app->refillMobile->state(your_id);
Yii::$app->refillMobile->refill(7 your_phone, your summ);