PHPackages                             yansongda/laravel-pay - 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. yansongda/laravel-pay

ActiveLibrary[Payment Processing](/categories/payments)

yansongda/laravel-pay
=====================

专注 Alipay/WeChat/Unipay 的 laravel 支付扩展包

v3.7.4(3mo ago)1.2k368.9k↑18.8%188[2 issues](https://github.com/yansongda/laravel-pay/issues)7MITPHP

Since Aug 20Pushed 3mo ago30 watchersCompare

[ Source](https://github.com/yansongda/laravel-pay)[ Packagist](https://packagist.org/packages/yansongda/laravel-pay)[ RSS](/packages/yansongda-laravel-pay/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (10)Versions (37)Used By (7)

Pay
===

[](#pay)

依赖
--

[](#依赖)

- php &gt;= 8.0
- composer
- laravel || lumen &gt;= 8.0

安装
--

[](#安装)

```
composer require yansongda/laravel-pay:~3.7.0
```

### laravel 用户

[](#laravel-用户)

#### 配置文件

[](#配置文件)

```
php artisan vendor:publish --provider="Yansongda\LaravelPay\PayServiceProvider" --tag=laravel-pay
```

### lumen 用户

[](#lumen-用户)

#### 配置文件

[](#配置文件-1)

请手动复制配置文件

#### service provider

[](#service-provider)

```
$app->register(Yansongda\LaravelPay\PayServiceProvider::class);
```

使用方法
----

[](#使用方法)

### 支付宝

[](#支付宝)

```
use Yansongda\LaravelPay\Facades\Pay;

$order = [
    'out_trade_no' => time(),
    'total_amount' => '1',
    'subject' => 'test subject - 测试',
];

return Pay::alipay()->web($order);

// 下面这个方法也可以
// return Pay::web($order);
```

### 微信

[](#微信)

```
use Yansongda\LaravelPay\Facades\Pay;

$order = [
    'out_trade_no' => time(),
    'body' => 'subject-测试',
    'total_fee'      => '1',
    'openid' => 'onkVf1FjWS5SBIixxxxxxxxx',
];

$result = Pay::wechat()->mp($order);
```

### 抖音支付

[](#抖音支付)

```
use Yansongda\LaravelPay\Facades\Pay;

$order = [
    'out_order_no' => date('YmdHis').mt_rand(1000, 9999),
    'total_amount' => 1,
    'subject' => '闫嵩达 - test - subject - 01',
    'body' => '闫嵩达 - test - body - 01',
    'valid_time' => 600,
    'expand_order_info' => json_encode([
        'original_delivery_fee' => 15,
        'actual_delivery_fee' => 10
    ])
];

$result = Pay::douyin()->mini($order);
```

### 江苏银行(e融支付)

[](#江苏银行e融支付)

```
use Yansongda\LaravelPay\Facades\Pay;

$order = [
    'outTradeNo' => time().'',
    'proInfo' => 'subject-测试',
    'totalFee'=> 1,
];

$result = Pay::jsb()->scan($order);
```

具体使用说明请传送至

License
-------

[](#license)

MIT

###  Health Score

66

—

FairBetter than 99% of packages

Maintenance80

Actively maintained with recent releases

Popularity60

Solid adoption and visibility

Community38

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 81.3% 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 ~94 days

Recently: every ~172 days

Total

34

Last Release

107d ago

Major Versions

v1.0.3 → v2.0.02017-12-27

v2.3.0 → v3.0.0-beta.02021-07-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/8762b660ee15e4d5000552eceaad37b42cb1f46bb67b29c9f07e7f31a3712250?d=identicon)[yansongda](/maintainers/yansongda)

---

Top Contributors

[![yansongda](https://avatars.githubusercontent.com/u/11869114?v=4)](https://github.com/yansongda "yansongda (65 commits)")[![calchen](https://avatars.githubusercontent.com/u/3085383?v=4)](https://github.com/calchen "calchen (2 commits)")[![JieAnthony](https://avatars.githubusercontent.com/u/38497992?v=4)](https://github.com/JieAnthony "JieAnthony (2 commits)")[![puzzle9](https://avatars.githubusercontent.com/u/13518196?v=4)](https://github.com/puzzle9 "puzzle9 (2 commits)")[![niefufeng](https://avatars.githubusercontent.com/u/3882254?v=4)](https://github.com/niefufeng "niefufeng (1 commits)")[![phoenixgao](https://avatars.githubusercontent.com/u/853338?v=4)](https://github.com/phoenixgao "phoenixgao (1 commits)")[![remxcode](https://avatars.githubusercontent.com/u/3363540?v=4)](https://github.com/remxcode "remxcode (1 commits)")[![wybcp](https://avatars.githubusercontent.com/u/6307915?v=4)](https://github.com/wybcp "wybcp (1 commits)")[![a443939412](https://avatars.githubusercontent.com/u/13361366?v=4)](https://github.com/a443939412 "a443939412 (1 commits)")[![zingimmick](https://avatars.githubusercontent.com/u/26657141?v=4)](https://github.com/zingimmick "zingimmick (1 commits)")[![carlin-rj](https://avatars.githubusercontent.com/u/140769537?v=4)](https://github.com/carlin-rj "carlin-rj (1 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (1 commits)")[![Hanson](https://avatars.githubusercontent.com/u/10583423?v=4)](https://github.com/Hanson "Hanson (1 commits)")

---

Tags

alipaylaravelpaypaymentunipaywechatyansongdalaravelpackagepayalipaywechatunipay

### Embed Badge

![Health badge](/badges/yansongda-laravel-pay/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M306](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)

PHPackages © 2026

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