easyid/easyid-php

Official PHP SDK for the EasyID identity verification API.

Maintainers

Package info

github.com/easyid-com-cn/easyid-php

Homepage

pkg:composer/easyid/easyid-php

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.1 2026-04-03 13:26 UTC

This package is auto-updated.

Last update: 2026-05-03 13:39:58 UTC


README

Official PHP SDK for the EasyID identity verification API.

EasyID 易验云 focuses on identity verification and security risk control APIs, including real-name verification, liveness detection, face recognition, phone verification, and fraud-risk related capabilities.

中文文档: README.zh-CN.md

Install

composer require easyid/easyid-php

Quick Start

<?php

use EasyID\EasyID;
use EasyID\APIError;

$client = new EasyID('ak_xxx', 'sk_xxx');

try {
    $result = $client->idcard->verify2('张三', '110101199001011234');
    var_dump($result->match);
} catch (APIError $error) {
    var_dump($error->codeValue, $error->requestId);
}

Supported APIs

  • IDCard: verify2, verify3, ocr
  • Phone: status, verify3
  • Face: liveness, compare, verify
  • Bank: verify4
  • Risk: score, storeFingerprint
  • Billing: balance, records

Configuration

  • base_url
  • timeout
  • http_client

Security Notice

This is a server-side SDK. Do not expose secret in browsers or mobile apps.

Official Resources

  • Official website: https://www.easyid.com.cn/
  • GitHub organization: https://github.com/easyid-com-cn/