PHPackages                             bestony/mbdpay - 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. [Payment Processing](/categories/payments)
4. /
5. bestony/mbdpay

AbandonedArchivedLibrary[Payment Processing](/categories/payments)

bestony/mbdpay
==============

SDK for mbd.pub

1.0.0(4y ago)2753MITPHP

Since Feb 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/bestony/mbdpay)[ Packagist](https://packagist.org/packages/bestony/mbdpay)[ Docs](https://github.com/bestony/mbdpay)[ RSS](/packages/bestony-mbdpay/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

面包多 Pay - PHP SDK
=================

[](#面包多-pay----php-sdk)

[![PHPStan Analyse](https://github.com/bestony/mbdpay/actions/workflows/stylecheck.yml/badge.svg)](https://github.com/bestony/mbdpay/actions/workflows/stylecheck.yml)

**由于面包多业务调整，此 SDK 已经失效，仅用作参考**

安装
--

[](#安装)

### 使用 Composer 安装

[](#使用-composer-安装)

```
composer require bestony/mbdpay
```

### 引入文件安装

[](#引入文件安装)

使用命令下载文件

```
wget  https://raw.githubusercontent.com/bestony/mbdpay/master/src/Client.php
```

并在代码中使用 `require_once "Client.php"` 引入对应的代码

使用方式
----

[](#使用方式)

基本用法可以参考下方代码

```
$client = new \Bestony\Mbdpay\Client(APPID, APPKEY);
$result = $client->wxH5pay([
            "description" => "testDescription",
            "out_trade_no" => "1234ajs",
            "amount_total" => 1
        ]);
```

更多详细用法，可以参考[调用说明](../../wiki/%E8%B0%83%E7%94%A8%E8%AF%B4%E6%98%8E)或[测试文件](tests/ClientTest.php)

测试
--

[](#测试)

1. 设定 `APPID` &amp; `APPKEY` 环境变量
2. 执行测试

```
composer test
```

更新日志
----

[](#更新日志)

请查看 [CHANGELOG](../../releases) 了解更新信息。

参与贡献
----

[](#参与贡献)

请查看 [CONTRIBUTING](.github/CONTRIBUTING.md) 了解更多关于参与贡献的详情。

安全风险
----

[](#安全风险)

如果你发现任何与安全相关问题，可以访问 [安全策略](../../security/policy) 了解如何反馈安全问题。

贡献者
---

[](#贡献者)

- [bestony](https://github.com/bestony)
- [All Contributors](../../contributors)

授权
--

[](#授权)

The MIT License (MIT). 请查看 [License File](LICENSE.md) 了解更多信息。

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

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

1606d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/44cb3c983f7073fdd157af9ca2818c368256ec64defec7fa07be06dcfae7f383?d=identicon)[Bestony](/maintainers/Bestony)

---

Top Contributors

[![bestony](https://avatars.githubusercontent.com/u/13283837?v=4)](https://github.com/bestony "bestony (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

---

Tags

paymentpayment

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/bestony-mbdpay/health.svg)

```
[![Health](https://phpackages.com/badges/bestony-mbdpay/health.svg)](https://phpackages.com/packages/bestony-mbdpay)
```

###  Alternatives

[paymentsuite/stripe-bundle

Stripe PaymentSuite Component

115.0k](/packages/paymentsuite-stripe-bundle)

PHPackages © 2026

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