ignatenkovnikita / yii2-refill-mobile
Client for service refill mobile
Installs: 65
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- guzzlehttp/guzzle: ^6.2
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-10-29 04:59:10 UTC
README
Client for service refill mobile
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);