/yii2-poscredit

PosCredit integration component for Yii2

Primary LanguagePHPMIT LicenseMIT

Yii2 component for PosCredit integration

License Dependency Status Latest Stable Version Total Downloads PHP Version

Installation

composer require axelpal/yii2-poscredit

Usage

Add component to your project's config file:

return [
    ...
    'components' => [
        ....
        'posCredit' => [
            'class' => 'AxelPAL\yii2\PosCredit',
            'userId' => $userID,
            'userToken' => $userToken,
        ]
    ],
];

Check status of profile

$profileData = Yii::$app->posCredit->getStatusShort($profileId);