/kyc-jibit

PHP client for the Jibit Identicator Project (KYC) API

Primary LanguagePHPMIT LicenseMIT

Jibit KYC

PHP client for the Jibit Identicator Project (KYC) API

Packagist Version PHP from Packagist Packagist

Installation

To install, simply require armezit/kyc-jibit with Composer:

composer require armezit/kyc-jibit

Usage

Create an instance of the \Armezit\Kyc\Jibit\Provider:

$provider = new \Armezit\Kyc\Jibit\Provider();
$provider->setApiKey('API_KEY');
$provider->setSecretKey('SECRET_KEY');

Execute any of the available methods. For example:

$response = $provider->matchNationalCodeWithMobileNumber([
    'nationalCode' => $nationalId,
    'mobileNumber' => $mobileNumber,
])->send();

if ($response->isSuccessful() && $response->isMatched()) {
    // national code and mobile number matched
}

Status of the project

Currently, the following methods are implemented by this package:

  • Match Card Number with National Code
  • Match National Code with Mobile Number

Testing

composer test

Contribute

Pull requests are welcome.

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.