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

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

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

百度开放平台sdk

1.0.0(1y ago)161MITPHPPHP &gt;=7.2

Since Sep 27Pushed 1y agoCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

安装PHP SDK
=========

[](#安装php-sdk)

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

**Composer安装：**

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

```

使用
==

[](#使用)

官方sdk貌似好久没有更新了，我这边自己添加一些新的方法进去

```
require 'vendor/autoload.php';
$config = [
      'app_id'     => 'your app id',
      'api_key'    => 'your api key',
      'secret_key' => 'your secret key',
      'debug'        => true,
  ];

$app = new \cje\BaiduAIP\BaiduApp($config);

var_dump($app->imageCensor->antiSpam('测试'));
```

使用文档
====

[](#使用文档)

参考[官方网站](http://ai.baidu.com/docs#/Begin/top)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

590d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e2fa55e5680029e06f749779af67faa8a78cf94bb59e82879dbaf3415e1cdc4?d=identicon)[风哀伤](/maintainers/%E9%A3%8E%E5%93%80%E4%BC%A4)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[96qbhy/tt-microapp

字节跳动小程序sdk

728.9k](/packages/96qbhy-tt-microapp)[96qbhy/baidu-aip

百度 AI 开放平台 php-sdk

633.9k](/packages/96qbhy-baidu-aip)[uduncloud/udun-wallet-sdk

udun-wallet-sdk

152.9k](/packages/uduncloud-udun-wallet-sdk)[96qbhy/agora

声网php-SDK

121.5k](/packages/96qbhy-agora)

PHPackages © 2026

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