PHPackages                             goldeagle/wx-pay-api - 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. [API Development](/categories/api)
4. /
5. goldeagle/wx-pay-api

AbandonedArchivedLibrary[API Development](/categories/api)

goldeagle/wx-pay-api
====================

基于微信官方PHP SDK V3修改的API SDK

3210317PHP

Since Oct 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/goldeagle/wx-pay-api)[ Packagist](https://packagist.org/packages/goldeagle/wx-pay-api)[ RSS](/packages/goldeagle-wx-pay-api/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

WxPayAPI
========

[](#wxpayapi)

[![Latest Stable Version](https://camo.githubusercontent.com/3291107e8b02102a4e5f28d609535fe80822f070b95d18b322e3c7fc41131ea4/68747470733a2f2f706f7365722e707567782e6f72672f676f6c646561676c652f77782d7061792d6170692f762f737461626c65)](https://packagist.org/packages/goldeagle/wx-pay-api)[![Total Downloads](https://camo.githubusercontent.com/58d4508cbaabd26c22d0a24861337e550ed1d5923484389698b99f36d20b0e28/68747470733a2f2f706f7365722e707567782e6f72672f676f6c646561676c652f77782d7061792d6170692f646f776e6c6f616473)](https://packagist.org/packages/goldeagle/wx-pay-api)[![Latest Unstable Version](https://camo.githubusercontent.com/d9a358f6c47376422004271de174071d8ce7c5dec5cb69d125e22a1c57449360/68747470733a2f2f706f7365722e707567782e6f72672f676f6c646561676c652f77782d7061792d6170692f762f756e737461626c65)](https://packagist.org/packages/goldeagle/wx-pay-api)[![License](https://camo.githubusercontent.com/a3ab7be02f6c2fb7af683b90f7248ad1ad2bf6b7a28f619631da192eb0817cbe/68747470733a2f2f706f7365722e707567782e6f72672f676f6c646561676c652f77782d7061792d6170692f6c6963656e7365)](https://packagist.org/packages/goldeagle/wx-pay-api)

WeiXin Pay API v3 for PHP, Modified by Goldeagle

这是什么？
-----

[](#这是什么)

这个是基于微信支付官方 PHP SDK V3 基础上修改的一套代码，实现了几个目的：

- 尽量兼容 PSR-2；
- 保证对 PHP 5.6 以上版本的支持（例如：用 php://input 替代 $GLOBALS\['HTTP\_RAW\_POST\_DATA'\]）；
- 修正了官方 SDK 中的一些错误。

还有什么事情要做？
---------

[](#还有什么事情要做)

- 完善对 composer 的支持，支持 PSR-4；
- 提供并完善样例代码；
- 提供并完善说明文档，起码要比官方文档更详尽。

为什么做这个东西
--------

[](#为什么做这个东西)

其实原因很简单：

- 官方东西做得太烂！
- 官方东西做得太烂！
- 官方东西做得太烂！

使用方法
----

[](#使用方法)

`# composer require goldeagle/wx-pay-api`

我是谁？
----

[](#我是谁)

我不是成龙，我是金雕。 Bison "goldeagle" Fan

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/2135044?v=4)[Bison "goldeagle" Fan](/maintainers/goldeagle)[@goldeagle](https://github.com/goldeagle)

### Embed Badge

![Health badge](/badges/goldeagle-wx-pay-api/health.svg)

```
[![Health](https://phpackages.com/badges/goldeagle-wx-pay-api/health.svg)](https://phpackages.com/packages/goldeagle-wx-pay-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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