PHPackages                             andygoo/wxpay - 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. andygoo/wxpay

ActiveLibrary[Payment Processing](/categories/payments)

andygoo/wxpay
=============

Wxpay module for Kohana

1.0.4(8y ago)026BSDPHP

Since Nov 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/andygoo/kohana-wxpay)[ Packagist](https://packagist.org/packages/andygoo/wxpay)[ RSS](/packages/andygoo-wxpay/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

wxpay
=====

[](#wxpay)

【微信支付】API对应的SDK和调用示例。微信官方代码。仅为自动加载和配置文件做修改。

使用
==

[](#使用)

require
-------

[](#require)

composer require即可。参见

配置
--

[](#配置)

然后在kohana框架的config/wxpay.php 中添加相关配置：

```
	return [
		'appid'=>'wx426b3015555a46be',
		'mchid'=>'1225312702',
		'key'=>'e10adc3949ba59abbe56e057f20f883e',
		'appsecret'=>'01c6d59a3f9024db6336662ac95c8e74',
		'sslcert_path'=>'../cert/apiclient_cert.pem',
		'sslkey_path'=>'../cert/apiclient_key.pem',
		'curl_proxy_host'=>'0.0.0.0',
		'curl_proxy_port'=>0,
		'report_levenl'=>1,
	];
```

使用
--

[](#使用-1)

相关类都声明在根命名空间下。

```
$wxpay=new \WxPayApi();
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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

5

Last Release

3093d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/andygoo-wxpay/health.svg)

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

###  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)
