Skip to content

getyoti/yoti-php-sdk-sandbox

Repository files navigation

Yoti PHP Sandbox SDK

Build Status Coverage Bugs Code Smells Vulnerabilities

This repository contains the tools you need to test your Yoti integration.

Installing the Sandbox

Add the Yoti SDK dependency:

$ composer require yoti/yoti-php-sdk-sandbox

Configuration

  • SANDBOX_CLIENT_SDK_ID is the Sandbox SDK identifier generated from the Sandbox section on Yoti Hub.

  • /path/to/your-pem-file.pem is the path to the Sandbox PEM file. It can be downloaded from the Sandbox section on Yoti Hub.

Please do not open the PEM file, as this might corrupt the key, and you will need to redownload it.

Profile

Profile Sandbox Client

use Yoti\Sandbox\Profile\SandboxClient;

$sandboxClient = new SandboxClient('SANDBOX_CLIENT_SDK_ID', '/path/to/your-pem-file.pem');

Yoti Client

use Yoti\YotiClient;

$yotiClient = new YotiClient('SANDBOX_CLIENT_SDK_ID', '/path/to/your-pem-file.pem', [
    'api.url' => 'https://api.yoti.com/sandbox/v1'
]);

Doc Scan

Doc Scan Sandbox Client

use Yoti\Sandbox\DocScan\SandboxClient;

$sandboxClient = new SandboxClient('SANDBOX_CLIENT_SDK_ID', '/path/to/your-pem-file.pem');

Doc Scan Client

use Yoti\DocScan\DocScanClient;

$docScanClient = new DocScanClient('SANDBOX_CLIENT_SDK_ID', '/path/to/your-pem-file.pem', [
    'api.url' => 'https://api.yoti.com/sandbox/idverify/v1'
]);

Examples