ignatenkovnikita/yii2-gsm-info

Client for gsm info

0.0.1 2016-05-16 15:39 UTC

This package is auto-updated.

Last update: 2024-11-29 04:30:37 UTC


README

Client for gsm info

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-gsm-info "*"

or add

"ignatenkovnikita/yii2-gsm-info": "*"

to the require section of your composer.json file.

Usage

Add this to your main configuration's components array:

'gsmInfo' => [
            'class' =>  \ignatenkovnikita\refillmobile\ClientGsmInfo::className(),
            'url' => your_url,
            'user' => your_user,
            'pass' => your_pass,
        ],

Typical component usage

Yii::$app->gsmInfo->getInfo(7 your_phone);
Yii::$app->gsmInfo->getRegion(7 your_phone);