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

3310317PHP

Since Oct 10Pushed 8y ago3 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 1mo 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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

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://www.gravatar.com/avatar/41f6dbaa6d2b75f0a75d58731c2797e5cb074ae51c39bc9bebaf135d90573b74?d=identicon)[goldeagle](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M453](/packages/google-gax)

PHPackages © 2026

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