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

ActiveLibrary[Payment Processing](/categories/payments)

payermax/sdk
============

32.8k↓56.1%6[1 issues](https://github.com/shareit-payermax/payermax-server-sdk-php/issues)PHP

Since Sep 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/shareit-payermax/payermax-server-sdk-php)[ Packagist](https://packagist.org/packages/payermax/sdk)[ RSS](/packages/payermax-sdk/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

PayerMAX Server sdk
===================

[](#payermax-server-sdk)

Evn prepare
-----------

[](#evn-prepare)

composer install

Init Config
-----------

[](#init-config)

```
    //构造参数
    $merchantConfig = new MerchantConfig();
    $merchantConfig->merchantNo = "your merchant no";
    $merchantConfig->appId = "your merchantAppId";
    $merchantConfig->merchantPrivateKey = "your private key";
    $merchantConfig->payermaxPublicKey = "payermax public key";
    //构造ISV商户所需参数
    $merchantConfig->spMerchantNo = "xxx";
    $merchantConfig->merchantAuthToken = "xxx";
    //设置参数
    PayermaxClient::setConfig($merchantConfig);
```

Send request
------------

[](#send-request)

```
    //构造业务报文
    $requestData = '{"outTradeNo": "PAM20220109123456111617V3","subject": "hello","totalAmount": "0.99","currency": "USD","country": "HK","userId": "100000002","goodsDetails": [{"goodsId": "60","goodsName": "60鑽石","quantity": "1","price": "0.99","goodsCurrency": "USD","showUrl": "http://domaim.com"}],"language": "en","reference": "300011","frontCallbackUrl": "https://domai.url","notifyUrl": "https://domain.com"}';
    $json_decodeData = json_decode($requestData, true);
    //请求并获取业务返回
    $resp = PayermaxClient::send('orderAndPay', $json_decodeData);
    echo json_encode($resp)  . "\n";
```

Verify Notification
-------------------

[](#verify-notification)

```
    PayermaxClient::verify("payermax request body", "payermax request sign");
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity21

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/147564791?v=4)[25ma](/maintainers/25ma)[@25ma](https://github.com/25ma)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.2k](/packages/msilabs-bkash)

PHPackages © 2026

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