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

ActiveLibrary[Payment Processing](/categories/payments)

jemoker/wxpay
=============

微信支付SDK在Laravel5封装包。

0351PHP

Since Sep 21Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

wxpay
=====

[](#wxpay)

自用 WeiXin Payment

\###Install

1. 修改composer.json文件,加入`"jemoker/wxpay": "dev-master"`

```
  "require": {
    "jemoker/wxpay": "dev-master"
  }
```

2. 修改app/config/app.php

```
'providers' => array(
  		'Jemoker\Wxpay\WxpayServiceProvider'
)

'aliases' => array(
		'Wxpay' => 'Jemoker\Wxpay\Facades\WxpayFacade'
)
```

3. 运行`composer update `命令
4. 运行`php artisan config:publish jemoker/wxpay`
5. 如有必要修改支付页面，运行`php artisan view:publish jemoker/wxpay`

\###Usage

支付调用

```
  $wxpay = app('wxpay');
  $params = array(
  	'body' => 'xxx',
  	'total_fee' => 'xxx',
  	'out_trade_no' => 'xxx',
  	'notify_url' => 'xxx',
  	'call_back_url' => 'xxx'
  );
  $wxpay->setParams($params);
```

支付回调

```
  $wxpay = app('wxpay');
  $notify = $wxpay->verifyNotify();

  if($notify){
    //业务逻辑
    switch ($wxpay->data['result_code']) {
    	...
    }
    return 'success';
  }else{
    //业务逻辑
    return 'fail';
  }
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

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

---

Top Contributors

[![jemoker](https://avatars.githubusercontent.com/u/17589328?v=4)](https://github.com/jemoker "jemoker (5 commits)")

### Embed Badge

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

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

###  Alternatives

[omnipay/coinbase

Coinbase driver for the Omnipay payment processing library

18570.2k1](/packages/omnipay-coinbase)

PHPackages © 2026

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