PHPackages                             crisen/laravel-weixinpay - 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. crisen/laravel-weixinpay

ActiveLibrary[Payment Processing](/categories/payments)

crisen/laravel-weixinpay
========================

weixin pay for laravel

1.0.0(8y ago)0211MITPHPPHP &gt;=5.4.0

Since Nov 6Pushed 8y ago2 watchersCompare

[ Source](https://github.com/crisenchou/laravel-weixinpay)[ Packagist](https://packagist.org/packages/crisen/laravel-weixinpay)[ Docs](https://github.com/crisenchou/laravel-weixinpay)[ RSS](/packages/crisen-laravel-weixinpay/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (1)Used By (0)

laravel -Weixinpay 微信支付
=======================

[](#laravel--weixinpay-微信支付)

> 微信支付

安装
--

[](#安装)

> 使用composer require命令进行安装

```
composer require "crisen/laravel-weixinpay":"1.0.*"

```

> 或者在composer.json中添加

```
"require": {
		....
        "crisen/laravel-weixinpay": "1.0.*"
 },

```

配置
--

[](#配置)

> 注册服务提供者(Service Provider)

```
'providers' => [
    ...
    Crisen\LaravelWeixinpay\WxpayServiceProvider::class,
}

```

> 添加门面(Facade)

```
'aliases' => [
    ...
	'Wxpay' => Crisen\LaravelWeixinpay\Facades\Wxpay::class
]

```

> 配置文件部署

```
php artisan vendor:publish

```

使用方法
----

[](#使用方法)

#### 统一下单--扫码支付

[](#统一下单--扫码支付)

```
 $pay = Wxpay::factory('UnifiedOrder');
 $payment = $pay->options([
     'body' => $order->body,
     'out_trade_no' => $order->orderid,
     'total_fee' => 1
 ])->send();
 if ($payment->isSuccessful()) {
     dump($payment->getCodeUrl());
 }

```

### 订单查询

[](#订单查询)

```
   $payment = Wxpay::factory('OrderQuery')->options([
       'out_trade_no' => 'xxxxxxx'//订单号
   ])->send();
   if ($payment->isSuccessful() && $payment->isPaid()) {
       //do something
   }

```

### 异步通知

[](#异步通知)

```
	$payment = Wxpay::factory('notify')->options($request);
	if ($payment->isSuccessful()) {
        //$outTradeNo = $payment->getOutTradeNo(); //do something with $outTradeNo
        $reply = $payment->reply();
        return response($reply);
    }

```

License
-------

[](#license)

MIT

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3109d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b7d5be5d100e7d58fb744b78f8eba03d64c7988d98594491e98766b710a3ec17?d=identicon)[crisenchou](/maintainers/crisenchou)

---

Top Contributors

[![crisenchou](https://avatars.githubusercontent.com/u/16332040?v=4)](https://github.com/crisenchou "crisenchou (37 commits)")

---

Tags

WeixinPay

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/crisen-laravel-weixinpay/health.svg)

```
[![Health](https://phpackages.com/badges/crisen-laravel-weixinpay/health.svg)](https://phpackages.com/packages/crisen-laravel-weixinpay)
```

###  Alternatives

[laraveldaily/laravel-invoices

Missing invoices for Laravel

1.5k1.3M4](/packages/laraveldaily-laravel-invoices)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[hyperbolaa/wechatpay

微信支付在laravle5中的封装

471.3k](/packages/hyperbolaa-wechatpay)[asciisd/knet

Knet package is provides an expressive, fluent interface to KNet's payment services.

141.1k](/packages/asciisd-knet)

PHPackages © 2026

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