PHPackages                             sxin/baidu-bcd-domain - 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. sxin/baidu-bcd-domain

ActiveLibrary

sxin/baidu-bcd-domain
=====================

百度云域名服务BCD

1.0.0(2y ago)05MITPHPPHP &gt;=7.3

Since May 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sxin0/baidu-bcd-domain)[ Packagist](https://packagist.org/packages/sxin/baidu-bcd-domain)[ RSS](/packages/sxin-baidu-bcd-domain/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

百度域名服务 BCD
==========

[](#百度域名服务-bcd)

> 百度智能云文档

功能
--

[](#功能)

- 域名列表
- 查询域名解析记录列表
- 更新域名解析记录

DEMO
----

[](#demo)

```
// 这里的变量注释名 就是百度文档API总述中的签名认证中的Access Key ID 和 Secret Access Key
// https://cloud.baidu.com/doc/BCD/s/pjwvymihl#%E7%AD%BE%E5%90%8D%E8%AE%A4%E8%AF%81
$access = 'f7be7cbexxxxxxxxxxxxxxxxx7789770';   // Access Key ID
$secret = '29dbe98dxxxxxxxxxxxxxxxxx76a6381';   // Secret Access Key

$bcd = new \Sxin\Baidu\Bcd\Domain($access, $secret);

/*域名列表*/
$res = $bcd->domain();
var_dump($res);
// {"totalCount":1,"result":[{"domain":"jsx6.com",...}]}

/*查询域名解析记录列表*/
$domain = 'jsx6.com';   // json_decode($res)[0]['domain']
$res = $bcd->domain_resolve_list($domain);
var_dump($res);
// {"orderBy":"domain","order":"desc","pageNo":1,"pageSize":10,"totalCount":23,"result":[{"recordId":21311111,"domain":"wiki","view":"DEFAULT","rdtype":"A","ttl":300,"rdata":"104.225.155.118","zoneName":"jsx6.com","status":"RUNNING"}]}

/*更新域名解析记录*/
$body = [
    'domain'   => 'wiki',
    'rdType'   => 'A',
    'view'     => 'DEFAULT',
    'rdata'    => '104.225.155.118',
    'ttl'      => 300,
    'zoneName' => 'jsx6.com',
    'recordId' => 21311111,
];
$res = $bcd->domain_resolve_edit($body);
```

联系我
---

[](#联系我)

[![Image](https://private-user-images.githubusercontent.com/29392026/238278221-3a570922-9100-4a72-9ad4-41214c5226f1.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQxNjg5NjAsIm5iZiI6MTc3NDE2ODY2MCwicGF0aCI6Ii8yOTM5MjAyNi8yMzgyNzgyMjEtM2E1NzA5MjItOTEwMC00YTcyLTlhZDQtNDEyMTRjNTIyNmYxLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAzMjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMzIyVDA4Mzc0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFjMzM3MTUwMTRmOWE4NjNlNDIyZjE2M2ZkYTRmOTc0NjdiZjA4MzU2NmJkZTAzZDBmMDE5MzQwZWQ1ZThjZGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.mHNkb2huaBNe4T3VxXZXYeA_IAnkzjLV2s_TkqxF5Qc)](https://private-user-images.githubusercontent.com/29392026/238278221-3a570922-9100-4a72-9ad4-41214c5226f1.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQxNjg5NjAsIm5iZiI6MTc3NDE2ODY2MCwicGF0aCI6Ii8yOTM5MjAyNi8yMzgyNzgyMjEtM2E1NzA5MjItOTEwMC00YTcyLTlhZDQtNDEyMTRjNTIyNmYxLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAzMjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMzIyVDA4Mzc0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFjMzM3MTUwMTRmOWE4NjNlNDIyZjE2M2ZkYTRmOTc0NjdiZjA4MzU2NmJkZTAzZDBmMDE5MzQwZWQ1ZThjZGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.mHNkb2huaBNe4T3VxXZXYeA_IAnkzjLV2s_TkqxF5Qc)

###  Health Score

19

—

LowBetter than 12% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

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

1042d ago

### Community

Maintainers

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

---

Top Contributors

[![jiangshengxin-tal](https://avatars.githubusercontent.com/u/131732832?v=4)](https://github.com/jiangshengxin-tal "jiangshengxin-tal (4 commits)")[![sxin0](https://avatars.githubusercontent.com/u/29392026?v=4)](https://github.com/sxin0 "sxin0 (2 commits)")

---

Tags

bcd

### Embed Badge

![Health badge](/badges/sxin-baidu-bcd-domain/health.svg)

```
[![Health](https://phpackages.com/badges/sxin-baidu-bcd-domain/health.svg)](https://phpackages.com/packages/sxin-baidu-bcd-domain)
```

PHPackages © 2026

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