PHPackages                             baidu-sdk/aip - 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. [API Development](/categories/api)
4. /
5. baidu-sdk/aip

ActiveLibrary[API Development](/categories/api)

baidu-sdk/aip
=============

baidu aip sdk

1.0.2(6y ago)0721MITPHP

Since Jul 25Pushed 6y agoCompare

[ Source](https://github.com/WhiteCrowSource/baidu-aip-sdk)[ Packagist](https://packagist.org/packages/baidu-sdk/aip)[ RSS](/packages/baidu-sdk-aip/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

baidu-aip-sdk
========================================

[](#baidu-aip-sdk--httpsaibaiducomsdk)

### 在开发laravel项目时，需要用到baidu云的sdk，顺手拿过来稍微调整了下

[](#在开发laravel项目时需要用到baidu云的sdk顺手拿过来稍微调整了下)

目录
--

[](#目录)

```
AipBase.php 基类
AipBCEUtil.php 工具类
AipHttpClient.php 请求类
---------------------
AipBodyAnalysis.php 人体关键点识别
AipContentCensor.php 内容识别
AipFace.php 人脸识别
AipImageCensor.php 黄反识别
AipImageClassify.php 图片识别类别
AipImageProcess.php 图片处理
AipImageSearch.php 图片搜索
AipKg.php	任务
AipNlp.php 语言处理
AipOcr.php OCR识别
AipSpeech.php 语音识别

```

安装
--

[](#安装)

```
composer require baidu-sdk/aip

```

用法
--

[](#用法)

### 具体文档请参照

[](#具体文档请参照-httpaibaiducomdocs)

```
以OCR为例

namespace App\Helpers;

use Baidu\Aip\AipOcr;//引入相应的模块

class OCR
{

    protected $appId='';//APP_ID
    protected $apiKey='';//API_KEY
    protected $secretKey='';//SECRET_KEY

    public function build(){
        $client = new AipOcr($this->appId, $this->apiKey, $this->secretKey);//不同的模块不同的类，具体请参考文档
        $image = file_get_contents('./wepay.jpg');
        $result=$client->basicGeneral($image);
        print_r($result);

    }
}

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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 ~0 days

Total

2

Last Release

2481d ago

### Community

Maintainers

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

---

Top Contributors

[![WhiteCrowSource](https://avatars.githubusercontent.com/u/8186205?v=4)](https://github.com/WhiteCrowSource "WhiteCrowSource (10 commits)")

---

Tags

OCRbaiduaip

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/baidu-sdk-aip/health.svg)

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

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[veryfi/veryfi-php

veryfi sdk for php

16129.2k](/packages/veryfi-veryfi-php)

PHPackages © 2026

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