PHPackages                             huasx/ai-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. huasx/ai-face

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

huasx/ai-face
=============

PHP BaiDu Ai-Face Sdk

v1.0.6(7y ago)1221MITPHPPHP &gt;=7.1.0CI failing

Since Jun 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/huasx/baidu-ai-face)[ Packagist](https://packagist.org/packages/huasx/ai-face)[ RSS](/packages/huasx-ai-face/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

[![](https://camo.githubusercontent.com/281c5adc79826a9a5b813f9db8f5533e843c6a60e217527d7c201754c86aab3b/68747470733a2f2f68756173782e6769746875622e696f2f696d672f6865616465725f696d672e6a7067)](https://huasx.github.io)

[![Build Status](https://camo.githubusercontent.com/3d78c61ee51d4e5876c376e5d951a3258aa75b38faa8a4d8541b1a6b17de2116/68747470733a2f2f6170692e7472617669732d63692e6f72672f68756173782f62616964752d61692d666163652e737667)](https://travis-ci.org/huasx/baidu-ai-face)[![StyleCI](https://camo.githubusercontent.com/2255ed9f13ddb24e79df11d69daed57f6ed7261f802b25498a906e60053e4fe4/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3131343130323039382f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/114102098)[![Total Downloads](https://camo.githubusercontent.com/1cf6966a85e5d997962efd1de57ab398fb017c51fd19d38b1f4efc33b6af2842/68747470733a2f2f706f7365722e707567782e6f72672f68756173782f61692d666163652f646f776e6c6f616473)](https://packagist.org/packages/huasx/ai-face)[![Latest Stable Version](https://camo.githubusercontent.com/165233ef584b13c4657fca1a33f958419352adadc7a2442d3d63c294e285b663/68747470733a2f2f706f7365722e707567782e6f72672f68756173782f61692d666163652f762f737461626c65)](https://packagist.org/packages/huasx/ai-face)[![License](https://camo.githubusercontent.com/7d2da347089b9309a3be0d2f139e56e0fdad19bbaa9c2cb052d01423335de0e8/68747470733a2f2f706f7365722e707567782e6f72672f68756173782f61692d666163652f6c6963656e73652e737667)](https://packagist.org/packages/huasx/ai-face)

baidu-ai-face
-------------

[](#baidu-ai-face)

### baidu ai face sdk for PHP

[](#baidu-ai-face-sdk-for-php)

Usage
-----

[](#usage)

### Download

[](#download)

```
composer require huasx/ai-face

```

### Example

[](#example)

```
//get token
$ret = $obj->init(
    [
        'client_id'     => 'Your Client Id',
        'client_secret' => 'Your Client Secret',
    ]
)->getToken();
var_dump($ret->getBody());

//seach
$search = [
    'image'         => 'https://ai.bdstatic.com/file/52BC00FFD4754A6298D977EDAD033DA0',
    'image_type'    => 'URL',
    'group_id_list' => 'group1',
];

$obj = new \AIFace\Baidu\Face();

$ret = $obj->init([
    'token' => $token,
])->search($search);

var_dump($ret->getBody());
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~104 days

Total

4

Last Release

2570d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eaccf5f0e72926872438ddcc312641bfcedea9717eee79be4919e697d92cf450?d=identicon)[huasx](/maintainers/huasx)

---

Top Contributors

[![huasx](https://avatars.githubusercontent.com/u/19986014?v=4)](https://github.com/huasx "huasx (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/huasx-ai-face/health.svg)

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

###  Alternatives

[botman/driver-amazon-alexa

Amazon Alexa driver for BotMan

156.9k2](/packages/botman-driver-amazon-alexa)

PHPackages © 2026

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