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

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

sym/sym-baidu-face-laravel
==========================

百度人脸laravel拓展

192PHP

Since Jun 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sym134/sym-baidu-face-laravel)[ Packagist](https://packagist.org/packages/sym/sym-baidu-face-laravel)[ RSS](/packages/sym-sym-baidu-face-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

sym-baidu-face-laravel
======================

[](#sym-baidu-face-laravel)

基于人脸识别SDK适配laravel拓展

---

安装
--

[](#安装)

```
composer require sym/sym-baidu-face-laravel
```

#### 发布配置

[](#发布配置)

```
php artisan vendor:publish --tag=baidu-face

```

#### 百度人脸参数 config/baidu-face.php

[](#百度人脸参数-configbaidu-facephp)

```
return [
    'APP_ID'     => '',
    'API_KEY'    => '',
    'SECRET_KEY' => '',
];
```

#### laravel&lt;=5.8

[](#laravel58)

```
//配置 config/app.php
[
    'providers'=>[
        'Sym\BaiduFace\BaiduFaceServiceProvider::class'
    ]
];
```

---

示例
--

[](#示例)

```
// APP_ID, API_KEY, SECRET_KEY  如果传了这三个参数会优先与配置参数
$client = new AipFace(APP_ID, API_KEY, SECRET_KEY);
$image = file_get_contents('test.jpg');

// 调用人脸检测  调用方式和官方SDK一样
// 可选参数
$options = [
'max_face_num'=>1,
'face_field' => 'age,beauty,expression,face_shape,gender,eye_status,face_type,mask,occlusion,spoofing,quality,landmark,landmark72,angle'
];
$res = $client->detect(base64_encode(file_get_contents($image)), 'BASE64', $options);
dd($res);
```

### 相关

[](#相关)

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

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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://www.gravatar.com/avatar/501c964d23378039edf0c40caa32f7f84ecaa9c5b103b280d3412dba562f24eb?d=identicon)[sym134](/maintainers/sym134)

---

Top Contributors

[![warmup413](https://avatars.githubusercontent.com/u/32946251?v=4)](https://github.com/warmup413 "warmup413 (1 commits)")

### Embed Badge

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

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

###  Alternatives

[davidepastore/ipinfo

A wrapper around the ipinfo.io services

55115.2k2](/packages/davidepastore-ipinfo)[pablo-sg-pacheco/wp-namespace-autoloader

A PHP autoloader class that follows the WordPress coding standards 2.0 and proposed 3.0 for class/interface/trait names and filenames

4234.3k2](/packages/pablo-sg-pacheco-wp-namespace-autoloader)[zero1limited/module-pagebuilder-web-vitals

Provides functionality to include image dimensions, link labels and lazyload options to image to help improve Google's Web Vitals audits scores

183.7k](/packages/zero1limited-module-pagebuilder-web-vitals)

PHPackages © 2026

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