PHPackages                             ccwawamiya/baidu-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ccwawamiya/baidu-aip

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

ccwawamiya/baidu-aip
====================

baidu aip sdk

1.0.3(1y ago)02MITPHP

Since Sep 12Pushed 1y agoCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)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

22

—

LowBetter than 22% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 83.3% 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

Unknown

Total

1

Last Release

606d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/04153f449a8afa0a2dc6bedeebb2e38c6e36694bb95af529656d8ee10cf1d39b?d=identicon)[ccwawamiya](/maintainers/ccwawamiya)

---

Top Contributors

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

---

Tags

OCRbaiduaip

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[thiagoalessio/tesseract_ocr

A wrapper to work with Tesseract OCR inside PHP.

3.0k3.3M25](/packages/thiagoalessio-tesseract-ocr)[aip/aip

Application server in PHP

2863.8k1](/packages/aip-aip)[cdsmths/laravel-ocr-space

OCR PDF's and images with the OCR.Space API from Laravel

11915.8k](/packages/cdsmths-laravel-ocr-space)[ddeboer/tesseract

A wrapper for the Tesseract OCR engine

23135.1k](/packages/ddeboer-tesseract)

PHPackages © 2026

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