armezit / kyc-jibit
PHP client for the Jibit Identicator Project (KYC) API
v0.4.1
2023-01-10 12:38 UTC
Requires
- php: ^8
- ext-json: *
- php-http/client-implementation: ^1
- php-http/discovery: ^1.14
- psr/http-client: ^1.0
- symfony/cache: ^6
- symfony/http-foundation: ^6.1
Requires (Dev)
README
PHP client for the Jibit Identicator Project (KYC) API
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.