composer require axelpal/yii2-poscredit
Add component to your project's config file:
return [
...
'components' => [
....
'posCredit' => [
'class' => 'AxelPAL\yii2\PosCredit',
'userId' => $userID,
'userToken' => $userToken,
]
],
];
$profileData = Yii::$app->posCredit->getStatusShort($profileId);