PHPackages                             sxqibo/fast-face - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. sxqibo/fast-face

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

sxqibo/fast-face
================

实人认证

v0.2(1y ago)032MITPHP

Since Aug 17Pushed 1y ago2 watchersCompare

[ Source](https://github.com/sxqibo/fastFace)[ Packagist](https://packagist.org/packages/sxqibo/fast-face)[ RSS](/packages/sxqibo-fast-face/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

fastFace 实人认证
=============

[](#fastface-实人认证)

简介
--

[](#简介)

一、功能列表
------

[](#一功能列表)

1. 阿里云的金融级 App 实人认证（2023-08-17）

`阿里云金融级 App 实人认证` 的文档地址:

>

二、使用方法
------

[](#二使用方法)

### 1、引入

[](#1引入)

```
composer require sxqibo/fast-face
```

### 2、实例化

[](#2实例化)

实例化

```
$verify = new VerifyFaceForAliyun($config);
```

类名为 VerifyFaceForAliyun, 后续会整合 百度、腾讯 等 SDK

$config 参数说明

```
$config = [
    // keyId
    'accessKeyId' => '',
    // keySecret
    'accessKeySecret' => '',
    // 场景 id
    'sceneId' => '',
    // 要接入的方案
    'productCode' => 'ID_PLUS',
    // 要进行活体检测的类型
    'model' => 'MULTI_ACTION',
    // 认证结果的回调通知地址
    'callbackUrl' => '',
    // 加密类型 暂时没有实现
    // 'encryptType' => 'SM2'
];
```

配置可以从 .env 或 数据库 中获得

具体参数详解见阿里云文档，文档地址：

>

### 3、调用方法

[](#3调用方法)

#### （1）获取 请求凭证 id

[](#1获取-请求凭证-id)

方法定义:

```
public function getCertifyId($initFaceVerify)
```

参数说明：

```
$initFaceVerifyResponse = $verify->getCertifyId([
    // 订单号，业务代码生成
    'outerOrderNo' => $outerOrderNo,
    // metaInfo，App 端的 SDK 获取
    'metaInfo'     => '',
    // 姓名
    'certName'     => '',
    // 身份证号
    'certNo'       => ''
]);
```

具体参数详解见阿里云文档，文档地址：

>

#### （1）获取 认证结果

[](#1获取-认证结果)

方法定义:

```
public function getVerifyResult(string $certifyId)
```

参数说明：

- $certifyId：通过第一个方法请求得到

### 4、返回结果

[](#4返回结果)

具体返回结果参考阿里云文档即可，文档地址：

>

四、报错处理
------

[](#四报错处理)

若出现错误如下： Fatal error: Uncaught GuzzleHttp\\Exception\\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see [https://curl.haxx.se/libcurl/…](https://curl.haxx.se/libcurl/%E2%80%A6) in xxx.php

其原因是由于本地的CURL的SSL证书太旧了，导致不识别此证书。

解决方法

1. 从  下载一个最新的证书。然后保存到一个任意目录。
2. 然后把catr.pem放到php的bin目录下，然后编辑php.ini，用记事本或者notepad++打开 php.ini文件，大概在1932行。 去掉curl.cainfo前面的注释“;”，然后在后面写上cacert.pem证书的完整路径及文件名，我的如下：
3. curl.cainfo = /Applications/EasySrv/software/php/php-8.2/bin/cacert.pem

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 77.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~61 days

Recently: every ~107 days

Total

8

Last Release

574d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f32e92c7e68c3d0af13677702b745fea90913ed6173f1a0c9506f0d25a50ebe?d=identicon)[hongweizhiyuan](/maintainers/hongweizhiyuan)

![](https://www.gravatar.com/avatar/397de3883921286ae8e124fc7e0cdbe3e0b809baf12b024e8b0ecbb8f79ebd58?d=identicon)[coderup2u](/maintainers/coderup2u)

---

Top Contributors

[![coderup2u](https://avatars.githubusercontent.com/u/70255338?v=4)](https://github.com/coderup2u "coderup2u (7 commits)")[![hongweizhiyuan](https://avatars.githubusercontent.com/u/2313822?v=4)](https://github.com/hongweizhiyuan "hongweizhiyuan (2 commits)")

### Embed Badge

![Health badge](/badges/sxqibo-fast-face/health.svg)

```
[![Health](https://phpackages.com/badges/sxqibo-fast-face/health.svg)](https://phpackages.com/packages/sxqibo-fast-face)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
