PHPackages                             web0376/baidu-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. web0376/baidu-face

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

web0376/baidu-face
==================

百度云人脸识别 SDK FOR PHP

1711PHP

Since Mar 22Pushed 8y ago1 watchersCompare

[ Source](https://github.com/web0376/baidu-face)[ Packagist](https://packagist.org/packages/web0376/baidu-face)[ RSS](/packages/web0376-baidu-face/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

baidu\_Face
===========

[](#baidu_face)

百度人脸识别SDK for php 百度在线文档：

### 安装

[](#安装)

```
composer require web0376/baidu-face dev-master
```

### DEMO

[](#demo)

```
require_once __DIR__ . '/vendor/autoload.php';
use baidu_face\Api\AipFace;

const APP_ID = '11111';
const API_KEY = '22222';
const SECRET_KEY = '333333';
$client = new AipFace(APP_ID, API_KEY, SECRET_KEY);
$image = file_get_contents('mayun.jpg');

// 调用人脸检测
$client->detect($image);

// 如果有可选参数
$options = array();
$options["max_face_num"] = 1;
$options["face_fields"] = "age,gender";

// 带参数调用人脸检测
$res = $client->detect($image, $options);
var_dump($res);
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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/5442314?v=4)[刘哈哈](/maintainers/web0376)[@web0376](https://github.com/web0376)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/web0376-baidu-face/health.svg)

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

###  Alternatives

[typhoon/type

Typhoon Type System

6459.4k11](/packages/typhoon-type)

PHPackages © 2026

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