PHP client for the Jibit Identicator Project (KYC) API
To install, simply require armezit/kyc-jibit
with Composer:
composer require armezit/kyc-jibit
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
}
Currently, the following methods are implemented by this package:
- Match Card Number with National Code
- Match National Code with Mobile Number
composer test
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.