PHP code example of armezit / kyc-jibit
1. Go to this page and download the library: Download armezit/kyc-jibit library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
armezit / kyc-jibit example snippets
$provider = new \Armezit\Kyc\Jibit\Provider();
$provider->setApiKey('API_KEY');
$provider->setSecretKey('SECRET_KEY');
$response = $provider->matchNationalCodeWithMobileNumber([
'nationalCode' => $nationalId,
'mobileNumber' => $mobileNumber,
])->send();
if ($response->isSuccessful() && $response->isMatched()) {
// national code and mobile number matched
}