verifyid/sdk 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

verifyid/sdk

最新稳定版本:v1.0.0

Composer 安装命令:

composer require verifyid/sdk

包简介

Official PHP SDK for VerifyID.io KYC, AML, Biometric and Document Verification APIs.

README 文档

README

Packagist Version (custom server) Packagist PHP Version Static Badge Static Badge License

Official PHP client for VerifyID.io – seamless integration for KYC, AML, and identity verification.

Installation

composer require verifyid/sdk

Usage

Vanilla PHP

require 'vendor/autoload.php';

use VerifyID\VerifyID;

$verifyID = new VerifyID('YOUR_API_KEY');

// Full KYC Verification
$response = $verifyID->fullKycVerification($frontBase64, $selfieBase64, $backBase64);

// Face Match
$response = $verifyID->faceMatch($frontBase64, $selfieBase64);

// Liveness Detection
$response = $verifyID->livenessDetection($selfieBase64);

// Deepfake Detection
$response = $verifyID->deepfakeDetection($selfieBase64);

// Document OCR
$response = $verifyID->documentReader($frontBase64, $backBase64);

// Credit Card Reader
$response = $verifyID->creditCardReader($creditCardBase64);

// Barcode Reader
$response = $verifyID->barcodeReader($barcodeBase64);

// AML/PEP/Crime Check
$response = $verifyID->amlPepCrimeChecker('John Doe', 0, 'ZA', 'all');

Laravel

  1. Add VERIFYID_API_KEY=your-api-key to your .env file.
  2. The SDK will be auto-registered thanks to the Service Provider and Facade.
use VerifyID\Laravel\VerifyIDFacade as VerifyID;

// Example usage in Controller or Service
$response = VerifyID::fullKycVerification($frontBase64, $selfieBase64, $backBase64);

// Or dependency-injected:
public function handle(\VerifyID\VerifyID $verifyID) {
    $response = $verifyID->fullKycVerification($front, $selfie, $back);
}

Publish the config (optional):

php artisan vendor:publish --tag=verifyid-config

CodeIgniter 4

  1. Set your API key in .env:
VERIFYID_API_KEY=your-api-key
VERIFYID_BASE_URL=https://api.verifyid.io
  1. Use the SDK via the provided service in your controllers:
$verifyID = service('verifyid');
$response = $verifyID->fullKycVerification($frontBase64, $selfieBase64, $backBase64);

Endpoints Supported

  • Full KYC Verification
  • Face Match
  • Liveness Detection
  • DDeepfake Detection
  • Document Reader (OCR)
  • Credit Card Reader
  • Barcode Reader
  • AML/PEP/Crime Checker

Notes

  • All images must be base64 encoded (base64_encode(file_get_contents($path))).
  • Responses are associative arrays.
  • For advanced usage (custom base URL, etc.), pass a second parameter to new VerifyID($apiKey, $baseUrl).

Testing

composer install
./vendor/bin/phpunit

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-15