PHPackages                             mbing/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. mbing/sdk

ActiveLibrary

mbing/sdk
=========

sdk拓展包 包含支付宝支付alipay、OpenSSL加密解密等

v0.2(6y ago)039PHP

Since Dec 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/moobing/sdk)[ Packagist](https://packagist.org/packages/mbing/sdk)[ RSS](/packages/mbing-sdk/feed)WikiDiscussions master Synced 1w ago

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

SDK
===

[](#sdk)

sdk拓展包 包含支付宝支付alipay、OpenSSL加密解密等

安装
--

[](#安装)

```
composer require mbing/sdk

```

加密解密类 - DEMO
------------

[](#加密解密类---demo)

```
use mbing\sdk\Openssl\Cryptor;

$encodeData = 'Here is the data to be encrypted.';
$key = 'eiort832j39fe8we';
//encrypto
$encrypted = Cryptor::Encrypt($encodeData, $key);
//decrypto
$decrypted = Cryptor::Decrypt($encrypted, $key);
```

支付宝APP支付类 - DEMO
----------------

[](#支付宝app支付类---demo)

```
use mbing\sdk\alipay\Alipay;

$config = array(
        'app_id' => 'xxx',//商户号
        'notify_url' => 'http://api.xxx.com/api/Payment/aliPayNotify',//回调通知
        'return_url' => 'http://api.xxx.com/api/Payment/aliRefundedNotify',//
        'ali_public_key' => 'xxx',//官方提供的一句话支付宝公钥(即去头去尾去换行的一行字符串，下同)
        'private_key' => 'xxx',//官方提供的一句话私钥
);
Alipay::$config = $config;
$aliData['body'] = '测试支付';
$aliData['subject'] = '测试支付';
$aliData['out_trade_no'] = '20170125test01';
$aliData['timeout_express'] = '30m';
$aliData['total_amount'] = '0.01';
$aliData['product_code'] = 'QUICK_MSECURITY_PAY';
$result['order_info'] = Alipay::app($aliData);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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

Every ~0 days

Total

2

Last Release

2355d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/70207b6957e7a5fd967d8b54f001ebac7efd981103721a751a7289c6a2f21bf7?d=identicon)[mbing](/maintainers/mbing)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/mbing-sdk/health.svg)

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

PHPackages © 2026

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