PHPackages                             akong/fingerprint\_matching - 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. akong/fingerprint\_matching

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

akong/fingerprint\_matching
===========================

指纹比对服务（Fingerprint matching）

v1.0.1(5y ago)128MITPHPPHP &gt;=7.4

Since Feb 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/huangcong12/fingerprint_matching)[ Packagist](https://packagist.org/packages/akong/fingerprint_matching)[ RSS](/packages/akong-fingerprint-matching/feed)WikiDiscussions main Synced today

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

PHP 指纹比对扩展包
===========

[](#php-指纹比对扩展包)

原理是通过 PHP7.4 的 FFI 功能调用 .so 包提供的比对方法。

[![CI Test Status](https://github.com/huangcong12/fingerprint_matching/workflows/CI/badge.svg)](//packagist.org/packages/akong/fingerprint_matching)[![Latest Stable Version](https://camo.githubusercontent.com/349a49efe54cb2456ab4cc3c9680a19552a3f57d696da2d692a731e45b4f7c58/68747470733a2f2f706f7365722e707567782e6f72672f616b6f6e672f66696e6765727072696e745f6d61746368696e672f76)](//packagist.org/packages/akong/fingerprint_matching)[![Total Downloads](https://camo.githubusercontent.com/f7ad946d0860d499a37f3a740859ecb25ef30b5a8938fb283f5715a29ed4f690/68747470733a2f2f706f7365722e707567782e6f72672f616b6f6e672f66696e6765727072696e745f6d61746368696e672f646f776e6c6f616473)](//packagist.org/packages/akong/fingerprint_matching)[![Latest Unstable Version](https://camo.githubusercontent.com/d6fc39abf717d913d32c0a564ff1c93c8d1477ce0ae6eab50ee066db03ff2f4f/68747470733a2f2f706f7365722e707567782e6f72672f616b6f6e672f66696e6765727072696e745f6d61746368696e672f762f756e737461626c65)](//packagist.org/packages/akong/fingerprint_matching)[![License](https://camo.githubusercontent.com/8cc6baa1c9a13f0d044e3b2a903edcf554581a09330ee8ef68e1ad109600aa70/68747470733a2f2f706f7365722e707567782e6f72672f616b6f6e672f66696e6765727072696e745f6d61746368696e672f6c6963656e7365)](//packagist.org/packages/akong/fingerprint_matching)

支持的设备厂家
=======

[](#支持的设备厂家)

- [星高科技（FGTIT）](http://www.fgtit.com/PC/demo-server.html)

如果别家产品有提供 .so 文件，也可以参考此包实现比对功能。

安装
==

[](#安装)

要求
--

[](#要求)

- PHP &gt;= 7.4
- FFI 扩展，且 `ffi.enable=true`

基于 composer 安装
--------------

[](#基于-composer-安装)

```
composer require akong/fingerprint_matching

```

使用
==

[](#使用)

基本方法
----

[](#基本方法)

### 1 对 1 比对

[](#1-对-1-比对)

比对成功返回：`true`，否则 `false`

```
