PHPackages                             finalsmile6868/kuangshi - 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. finalsmile6868/kuangshi

ActiveLibrary

finalsmile6868/kuangshi
=======================

kuangshi face detect

012PHP

Since Jan 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/finalsmile6868/kuangshi)[ Packagist](https://packagist.org/packages/finalsmile6868/kuangshi)[ RSS](/packages/finalsmile6868-kuangshi/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

基于旷视九霄的人脸识别
===========

[](#基于旷视九霄的人脸识别)

1. 安装 : composer require finalsmile6868/kuangshi
2. Laravel添加以下类到config/app.php文件的providers数组中

    Finalsmile6868\\Kuangshi\\KuangshiServiceProvider::class
3. 生成数据库表

    php artisan migrate
4. 生成config/kuangshi.php配置文件

    php artisan vendor:publish
5. 在 config.kuangshi.php文件中，配置AppKey,SecretKey

    [获取AppKey,SecreKey](https://cloud9.megvii.com/system_manage/open_api)
6. 可在config.kuangshi.php文件的route数组中，配置路由前缀(prefix),默认ks
7. 目前支持员工列表同步，默认路径为 /ks/person，如果修改了路由前缀，则，路径为 /修改的路由前缀/person

    [字段含义见此处](https://cloud9.megvii.com/docs/web/part7/1.html#%E5%88%86%E9%A1%B5%E6%9F%A5%E8%AF%A2%E4%BA%BA%E5%91%98%E5%88%97%E8%A1%A8)
8. 旷视的事件回调，目前支持人员事件；默认回调路由 /ks/notify.

    在收到事件回调后，回写入kuangshi\_event\_record表，然后发出一个事件通知：Finalsmile6868\\Kuangshi\\Events\\KuangshiEvent.php; 要接收此事件，需要在app/Providers/EventServiceProvider.php指定要接收的时间，例如：

    ```
    ```

'Finalsmile6868\\Kuangshi\\Events\\KuangshiEvent'=&gt;\[ 'App\\Listeners\\KuangshiListener',//改为接收事件的Listener \],

```
 可以参考Finalsmile6868\Kuangshi\Linsteners\KuangshiLinstener.php
9.

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

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/0b9214a17d36f93b7d45333edbfde1e303e9dda2bd3125b840eb6be92d33d0dd?d=identicon)[finalsmile6868](/maintainers/finalsmile6868)

---

Top Contributors

[![KongCopolit](https://avatars.githubusercontent.com/u/135190436?v=4)](https://github.com/KongCopolit "KongCopolit (13 commits)")

### Embed Badge

![Health badge](/badges/finalsmile6868-kuangshi/health.svg)

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

PHPackages © 2026

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