PHPackages                             amitkkhanchandani/faceplusplus - 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. [Image &amp; Media](/categories/media)
4. /
5. amitkkhanchandani/faceplusplus

ActiveLibrary[Image &amp; Media](/categories/media)

amitkkhanchandani/faceplusplus
==============================

Face ++ Library for PHP

43792PHP

Since Aug 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/AmitKKhanchandani/faceplusplus)[ Packagist](https://packagist.org/packages/amitkkhanchandani/faceplusplus)[ RSS](/packages/amitkkhanchandani-faceplusplus/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Face++
======

[](#face)

Uses Face++ v3 US Server.

Installation
------------

[](#installation)

```
composer require amitkkhanchandani/faceplusplus:dev-master

```

Examples:
---------

[](#examples)

#### Namespace

[](#namespace)

```
use Amitk\Faceplusplus\Facepp;

```

### Get Face Token

[](#get-face-token)

```
$api_key = env('FACEPP_API_KEY',null);
$api_secret = env('FACEPP_API_SECRET',null);
$facepp = new Facepp($api_key, $api_secret);
$params = array(
    'image_url'    =>   ''
);
$response = $facepp->execute('/detect',$params);

$response = json_decode(json_encode($response));
if($response->http_code == 200){
    $data = json_decode($response->body);
    //Token Data is in the $data variable
}
else{
    //Handle if response is not 200.
}
```

### Face Compare

[](#face-compare)

```
$api_key = env('FACEPP_API_KEY',null);
$api_secret = env('FACEPP_API_SECRET',null);
$facepp = new Facepp($api_key, $api_secret);
$params = array(
    'face_token1'   =>  '',
    'face_token2'   =>  ''
);
$response = $facepp->execute('/compare',$params);

$response = json_decode(json_encode($response));
if($response->http_code == 200){
    $data = json_decode($response->body);
    /** Data Available
     *  confidence
        request_id
        time_used
        thresholds  */
    $confidence = $data->confidence;
    // Handle Confidence Level.
    return $confidence;
}
else{
    //Handle if response is not 200.
}
```

[More APIS Details on Face++ Doc Center](https://console.faceplusplus.com/documents/5679127)

### Copyright and License

[](#copyright-and-license)

Copyright (c) 2018, Amit K Khanchandani and Contributors. All Rights Reserved.

This project is licenced under the [MIT License](LICENSE.txt).

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11069057?v=4)[Amit K Khanchandani](/maintainers/AmitKKhanchandani)[@AmitKKhanchandani](https://github.com/AmitKKhanchandani)

---

Top Contributors

[![AmitKKhanchandani](https://avatars.githubusercontent.com/u/11069057?v=4)](https://github.com/AmitKKhanchandani "AmitKKhanchandani (9 commits)")

---

Tags

face-compare-recognitionfacecomparefacepluspluslibraryphp

### Embed Badge

![Health badge](/badges/amitkkhanchandani-faceplusplus/health.svg)

```
[![Health](https://phpackages.com/badges/amitkkhanchandani-faceplusplus/health.svg)](https://phpackages.com/packages/amitkkhanchandani-faceplusplus)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

133890.0k3](/packages/goat1000-svggraph)[imagekit/imagekit

PHP library for Imagekit

46877.3k10](/packages/imagekit-imagekit)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

12644.1k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

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