PHPackages                             fenghuohuo/payment - 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. fenghuohuo/payment

ActiveLibrary[Payment Processing](/categories/payments)

fenghuohuo/payment
==================

支付sdk集合

16PHP

Since Oct 25Pushed 7y agoCompare

[ Source](https://github.com/fenghuohuo/payment)[ Packagist](https://packagist.org/packages/fenghuohuo/payment)[ RSS](/packages/fenghuohuo-payment/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

payment
=======

[](#payment)

---

[![Latest Stable Version](https://camo.githubusercontent.com/2352fa50fe33a5535882489e8b386a44746af516886f552b10b9b2e2b2321397/68747470733a2f2f706f7365722e707567782e6f72672f66656e6768756f68756f2f7061796d656e742f762f737461626c65)](https://packagist.org/packages/fenghuohuo/payment)[![Total Downloads](https://camo.githubusercontent.com/bb9dfbfd0573519e24445e0bd200a44863f6977a3daae0416c2ce9ec39194006/68747470733a2f2f706f7365722e707567782e6f72672f66656e6768756f68756f2f7061796d656e742f646f776e6c6f616473)](https://packagist.org/packages/fenghuohuo/payment)[![Latest Unstable Version](https://camo.githubusercontent.com/898130014d9e2d73a729b37817d66f299f7a4309f4008c63cda2b3cab89094a7/68747470733a2f2f706f7365722e707567782e6f72672f66656e6768756f68756f2f7061796d656e742f762f756e737461626c65)](https://packagist.org/packages/fenghuohuo/payment)[![License](https://camo.githubusercontent.com/8d2d4e16ced6b730eb29b9343d45d997d5435660788259631fb4a23f9c7a75ba/68747470733a2f2f706f7365722e707567782e6f72672f66656e6768756f68756f2f7061796d656e742f6c6963656e7365)](https://packagist.org/packages/fenghuohuo/payment)

Installation
------------

[](#installation)

```
composer require "fenghuohuo/payment" -vvv
```

Usage
-----

[](#usage)

### channel 支付平台(支付宝/微信)

[](#channel-支付平台支付宝微信)

支付渠道参数支付宝APP支付alipay付宝web支付alipay\_wap支付宝二维码支付alipay\_qr支付宝手机网站支付alipay\_pc\_direct微信APP支付wx微信公众号支付wx\_pub微信二维码支付wx\_pub\_qr微信H5支付wx\_h5### 配置文件

[](#配置文件)

```
/src/Config.php

```

### 用例

[](#用例)

```
    public function testCreate()
        {
            try {
                $channel = 'alipay';
                $order = (object)[
                    'orderId'  => '111',
                    'amount'   => 100,
                    'subject'  => '测试商品',
                    'body'     => '商品详情',
                    'pid'      => 1, // 商品id
                    'clientIp' => '111', // 客户端设备id
                    'extra'    => '', // 额外参数 json {"openid":"111"}
                ];
                $payment = new Payment($channel);
                $payment->createOrder($order);

                var_dump($order);
            } catch (\Exception $exception) {
                throw $exception;
            }
        }

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

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/20682637?v=4)[fenghuohuo](/maintainers/fenghuohuo)[@fenghuohuo](https://github.com/fenghuohuo)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/fenghuohuo-payment/health.svg)

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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