PHPackages                             w394786996/alipay - 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. w394786996/alipay

ActivePackage[Payment Processing](/categories/payments)

w394786996/alipay
=================

laravel-alipay

1.0.1(8y ago)013MITPHP

Since Aug 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/w394786996/alipay)[ Packagist](https://packagist.org/packages/w394786996/alipay)[ RSS](/packages/w394786996-alipay/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

laravel-alipay包 ING。。。。
=======================

[](#laravel-alipay包-ing)

根据支付宝最新版 支付接口SDK 整合laravel5包
============================

[](#根据支付宝最新版-支付接口sdk-整合laravel5包)

安装
--

[](#安装)

在 composer.json 文件中添加:" w394786996/alipay": "1.0.\*" 执行：composer update

在app.php中加上 Yi210\\Alipay\\AlipayServiceProvider::class,

添加配置文件到config: php artisan vendor:publish --provider="Yi210\\Alipay\\AlipayServiceProvider"

支持 手机、电脑
--------

[](#支持-手机电脑)

支持交易查询操作 支持退款操作 支持退款查询操作 支持交易关闭操作

用法
--

[](#用法)

先将config/alipay.php 中各项配置好

// 具体方法可查看 AlipaySdk.php

namespace App\\Http\\Controllers; use Yi210\\Alipay\\Facades\\Alipay;

// ------------------------------------- 电脑版 -------------------

/\*\*

- 支付
- @param Request $request
- @return mixed \*/ public function pagePay(Request $request) { //商户订单号，商户网站订单系统中唯一订单号，必填 $out\_trade\_no = date('YmdHis') . '00045623'; //订单名称，必填 $subject = '这是一个好东东啊'; //付款金额，必填 $total\_amount = 0.01; //商品描述，可空 $body = '啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊'; $response = Alipay::pagePay($subject, $body, $out\_trade\_no, $total\_amount); //输出表单 return $response\['redirect\_url'\]; }

// ------------------------------------- 手机版 -------------------

public function wapPay(Request $request) { //商户订单号，商户网站订单系统中唯一订单号，必填 $out\_trade\_no = date('YmdHis') . '00045623'; //订单名称，必填 $subject = '这是一个好东东啊'; //付款金额，必填 $total\_amount = 0.01; //商品描述，可空 $body = '啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊'; $response = Alipay::wapPay($subject, $body, $out\_trade\_no, $total\_amount); //输出表单 return $response\['redirect\_url'\]; }

// ....... 其它退款 关闭等请看 AlipaySdk.php

// 不足之处请加Q394786996提出

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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 ~6 days

Total

2

Last Release

3231d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11640641?v=4)[豁达于心](/maintainers/w394786996)[@w394786996](https://github.com/w394786996)

---

Top Contributors

[![w394786996](https://avatars.githubusercontent.com/u/11640641?v=4)](https://github.com/w394786996 "w394786996 (11 commits)")

### Embed Badge

![Health badge](/badges/w394786996-alipay/health.svg)

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

###  Alternatives

[omnipay/coinbase

Coinbase driver for the Omnipay payment processing library

18570.2k1](/packages/omnipay-coinbase)[oxid-esales/amazon-pay-module

AmazonPay module for OXID

1824.3k](/packages/oxid-esales-amazon-pay-module)

PHPackages © 2026

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