armezit/kyc-jibit

PHP client for the Jibit Identicator Project (KYC) API

v0.4.1 2023-01-10 12:38 UTC

This package is auto-updated.

Last update: 2024-04-10 15:17:36 UTC


README

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.