PHPackages                             maxsky/baidu-aip-sdk - 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. maxsky/baidu-aip-sdk

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

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

Baidu public AI php sdk

4.16.0(2y ago)131Apache-2.0PHPPHP &gt;=7.2

Since Jan 18Pushed 2y agoCompare

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

READMEChangelog (2)Dependencies (2)Versions (6)Used By (0)

Baidu AIP PHP SDK
=================

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

[![996.icu](https://camo.githubusercontent.com/ac8f294a80f65338db545230f1a881b9a382204a1f187c6ff40ee679d42d40ca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c696e6b2d3939362e6963752d7265642e737667)](https://996.icu)[![codecov](https://camo.githubusercontent.com/10b01e0e1c2cccb11751f982ea682c050fa6241c1eb8218d56ff78e33a841328/68747470733a2f2f636f6465636f762e696f2f67682f6d6178736b792f62616964752d6169702d73646b2f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d6f617a55537034516f33)](https://codecov.io/gh/maxsky/baidu-aip-sdk)

目录结构
----

[](#目录结构)

```
├── AipBodyAnalysis.php      // 人体分析
├── AipContentCensor.php     // 内容审核
├── AipFace.php              // 人脸识别
├── AipImageCensor.php       // 图像审核
├── AipImageClassify.php     // 图像识别
├── AipImageProcess.php      // 图像处理
├── AipImageSearch.php       // 图像搜索
├── AipKg.php                // 知识图谱（Knowledge Graph）
├── AipNlp.php               // 自然语言处理（Natural Language Processing）
├── AipOcrCard.php           // OCR 卡证
├── AipOcrEdu.php            // OCR 教育
├── AipOcrGeneric.php        // OCR 通用
├── AipOcrOther.php          // OCR 其它
├── AipOcrReceiptFinance.php // OCR 财务票据
├── AipOcrReceiptMedical.php // OCR 医疗票据
├── AipOcrVehicle.php        // OCR 汽车相关
├── AipSpeech.php            // 语音 [暂时移除]
├── Helper                   // 助手函数、常量
└── Lib
    ├── AipBase.php          // Aip 基类
    ├── AipHttpUtil.php
    ├── AipSampleSigner.php
    ├── AipSignOption.php
    └── Traits               // 工具

```

**支持 PHP 版本：7.2+**

**Composer安装：**

```
composer require maxsky/baidu-aip-sdk
```

使用文档
====

[](#使用文档)

参考 [AI 接入指南](https://ai.baidu.com/ai-doc/REFERENCE/Ck3dwjgn3)

```
$aip = new Baidu\Aip\AipOcrGeneric('App ID','API Key','Secret Key');

// 部分方法可传入 URL 地址
$aip->general(file_get_contents('File path'));
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66% 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 ~398 days

Total

5

Last Release

1074d ago

Major Versions

2.2.12 → 4.15.42021-06-04

PHP version history (2 changes)2.2.11PHP &gt;=5.3.3

4.15.4PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f8f4aa99ca479f6fb6b162b4b56ce4e8e8e96518c828949a69b2db37ae4ecb0?d=identicon)[maxsky](/maintainers/maxsky)

---

Top Contributors

[![maxsky](https://avatars.githubusercontent.com/u/7405522?v=4)](https://github.com/maxsky "maxsky (31 commits)")[![iMuduo](https://avatars.githubusercontent.com/u/5443624?v=4)](https://github.com/iMuduo "iMuduo (16 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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