PHPackages                             yaojinhui1993/bce-sdk-php - 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. yaojinhui1993/bce-sdk-php

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

yaojinhui1993/bce-sdk-php
=========================

BCE SDK for PHP

00PHP

Since Mar 27Pushed 3y agoCompare

[ Source](https://github.com/yaojinhui1993/bce-sdk-php)[ Packagist](https://packagist.org/packages/yaojinhui1993/bce-sdk-php)[ RSS](/packages/yaojinhui1993-bce-sdk-php/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

百度的 php sdk
===========

[](#百度的-php-sdk)

运行环境

PHP SDK 包要求运行环境至少为 PHP 5.3.2 版本 (暂不支持 PHP 8 及以上版本)，如 5.4、5.5、5.6、7.0、7.1、7.2、7.3。

安装步骤

在 官方网站下载 PHP SDK 压缩工具包。 解压 ZIP 包之后有三个文件，如下：

```
1. BaiduBce.phar                    //PHP SDK
2. CdnClientSample.php         //示例
3. CdnSampleConf.php                //参考配置文件，具体内容见下文

```

在脚本文件中添加以下代码，即可以使用 SDK 包：

```
1. include BaiduBce.phar;
2. require YourConf.php;

```

SDK 目录结构

1. BaiduBce.phar
2. ├──src
3. │ └──BaiduBce
4. │ ├──Auth //BCE签名相关
5. │ ├── **Exception** //BCE客户端的异常
6. │ ├──Http //BCE的Http通信相关
7. │ ├── **Log** //BCE日志
8. │ ├──Services
9. │ │ └──Cdn //Cdn主目录，此目录必须保留
10. │ │ ├──CdnClient.php //Cdn操作类，所有操作可以通过CdnClient类可以完成
11. │ └──Util //BCE公用工具
12. └──vendor //第三方库

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/46852dcfafc9c803c69ff56a9c3eda0347577c27fcd4e15e41c5265240fb97ec?d=identicon)[yaojinhui1993](/maintainers/yaojinhui1993)

---

Top Contributors

[![xuchuan](https://avatars.githubusercontent.com/u/928140?v=4)](https://github.com/xuchuan "xuchuan (7 commits)")[![yaojinhui1993](https://avatars.githubusercontent.com/u/29257266?v=4)](https://github.com/yaojinhui1993 "yaojinhui1993 (3 commits)")

### Embed Badge

![Health badge](/badges/yaojinhui1993-bce-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/yaojinhui1993-bce-sdk-php/health.svg)](https://phpackages.com/packages/yaojinhui1993-bce-sdk-php)
```

###  Alternatives

[degraciamathieu/riddler

Password generator service

135.1k](/packages/degraciamathieu-riddler)

PHPackages © 2026

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