yoti / yoti-php-sdk-sandbox
Yoti PHP SDK Sandbox
Installs: 78 352
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 11
Open Issues: 11
Requires
- php: ^7.1 || ^8.0
- yoti/yoti-php-sdk: ^3.1
Requires (Dev)
- brainmaestro/composer-git-hooks: ^2.8
- friendsofphp/php-cs-fixer: ^2.15
- phpstan/extension-installer: ^1.0
- phpstan/phpstan-strict-rules: ^0.12.1
- phpunit/phpunit: ^7.5 || ^8.5 || ^9.3
- squizlabs/php_codesniffer: ^3.4
- symfony/phpunit-bridge: ^5.1
- dev-master
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.0
- dev-SDK-2438-php-implement-additional-sandbox-sdk-helpers-for-mock-responses-add-v2
- dev-dependabot/composer/development/symfony/phpunit-bridge-tw-7.1
- dev-dependabot/composer/development/phpstan/phpstan-strict-rules-tw-1.6.0
- dev-Release/1.6.1
- dev-development
- dev-SDK-2452-Update-php-and-yotisdk-versions
- dev-SDK-2438-php-implement-additional-sandbox-sdk-helpers-for-mock-responses
- dev-sandbox-update
- dev-Release/4.2.2
- dev-SDK-1868-github-actions
- dev-Release/1.6.0
- dev-SDK-1829-ThirdPartyIdentityCheck
- dev-sdk-1863-github-actions
This package is auto-updated.
Last update: 2025-03-20 09:48:12 UTC
README
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' ]);