PhealNG wrapper for Yii Framework
composer require unti1x/yii-phealng
or modify composer.json:
{
"require": {
"unti1x/yii-phealng": "dev-master"
}
}
and then
composer install
Download and extract into your project's protected/extensions
folder or
wherever you want.
Note that original PhealNG also required.
In your application config in components section:
[
'phealng' => [
'class' => 'ext.YiiPhealNG',
'pheal_class' => 'path/to/Pheal',
'config' => [
'keyID' => 'YOUR KEY ID HERE',
'vCode' => 'YOUT VERIFICATION CODE HERE',
'scope' => 'KEY SCOPE'
]
]
]
$pheal = Yii::app()->phealng;
// use it like you have direct access to Pheal object
var_dump($pheal->accountScope->ApiKeyInfo()->toArray())
CC-BY-SA 4.0 but I don't really care.
No stable releases.
Comments