huasx / ai-face
PHP BaiDu Ai-Face Sdk
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/huasx/ai-face
Requires
- php: >=7.1.0
- ext-curl: *
- ext-json: *
- ext-simplexml: *
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2025-10-29 02:15:49 UTC
README
baidu-ai-face
baidu ai face sdk for PHP
Usage
Download
composer require huasx/ai-face
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());