sevenfloor/yii2-zagruzka

Client for api zagruzka.com

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2016-07-04 14:06 UTC

This package is not auto-updated.

Last update: 2024-11-09 20:17:45 UTC


README

Client for api zagruzka.com

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock available

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist sevenfloor/yii2-zagruzka "*"

or add

"sevenfloor/yii2-zagruzka": "*"

to the require section of your composer.json file.

Usage

Add this to your main configuration's components array:

'clientZagruzka' => [
            'class' => \sevenfloor\zagruzka\ClientZagruzka::className() ,
            'url' => 'zagruzka.url',
            'login' => 'your_login',
            'pass' => 'your_password',
            'urlCallback' => 'partner.url'
        ],

Typical component usage

Yii::$app->clientZagruzka->pay(phone, sum);
Yii::$app->clientZagruzka->balance();