unbank/mitek

Mitek Integration

dev-master 2022-07-11 01:20 UTC

This package is auto-updated.

Last update: 2024-05-11 05:07:32 UTC


README

PHP API Library for Mitek Identity Cloud that provides authenticating and extracting data from identity documents.

This library aims to provice all the API found on the Mitek API Docs page.

What's Mitek?

Mitek is a Digital identity solutions that is designed to prevent fraud, increase conversions and streamline operations

Mitek uses OAuth v2 with JWT tokens for authorization and OpenID for authentication. This token-based standard leverages temporary tokens that provide access to a resource for a limited duration. In our production environments, these tokens will be valid for 5 minutes from the time the token is first issued. When you are requesting one of these temporary tokens, you need to provide the resource you are trying to access (in OAuth this is called the scope). It is best practice to request only the minimally required scope(s) for the operation(s) in order to limit the rights of the access token provided.

for more Mitek see https://docs.us.mitekcloud.com/#introduction

Usage

Mobile Verify - Auto

Code

<?php

use Unbank\Identity\Mitek\MitekAPI;


$mitek = new MitekAPI(
    null, // Auth Token
    true // Use Mitek Sandbox API URL
);
$mitek->auth(
    'YOUR-MITEK-CLIENT-ID'
    'YOUR-MITEK-CLIENT-SECRET',
    'YOUR-MITEK-GRANT_TYPE',
    'YOUR-MITEK-SCOPE'
);
$response = $mitek->verify(
    $images,
    'YOUR-CUSTOMER-REFERENCE-ID',
    'idDocument'
);

echo $response['evidence']["extractedData"]["name"]["fullName"]

?>

For more information about Verify Auto - Request, see https://docs.us.mitekcloud.com/#mobile-verify-auto

Result

OSHANE BAILEY

For more information about Verify Auto - Response, see https://docs.us.mitekcloud.com/#verify-auto-response

Roadmap based on Mitek API Endpoints

  • Authentication (Done)
  • Mobile Verify - Auto
    • Verify Auto - Request (Done)
    • Verify Auto - Response (Done)
    • Verify Auto - HTTP Response Headers
    • Verify Auto - HTTP Response Codes
    • Verify Auto - HTTP Error Responses
    • Verify Auto - Processing Reasons

Issue Tracker

Please use our issue tracker

License

The MIT License (MIT). Please see License File for more information.