PHPackages                             paopao7/alipay\_webpay\_with\_laravel - 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. paopao7/alipay\_webpay\_with\_laravel

ActiveLibrary[Payment Processing](/categories/payments)

paopao7/alipay\_webpay\_with\_laravel
=====================================

base on alipay\_webpay\_demo with php

1.0.0(7y ago)14MITPHPPHP &gt;=7.1.3

Since Sep 13Pushed 7y ago1 watchersCompare

[ Source](https://github.com/paopao7/alipay_webpay_with_laravel)[ Packagist](https://packagist.org/packages/paopao7/alipay_webpay_with_laravel)[ RSS](/packages/paopao7-alipay-webpay-with-laravel/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

alipay\_webpay\_with\_laravel
=============================

[](#alipay_webpay_with_laravel)

Laravel框架下集成支付宝电脑网站支付

说明
==

[](#说明)

因本人最近学习了Lavavel框架，所以打算将支付宝的电脑网址支付功能进行集成。当然其他功能也可以集成，这边先以电脑网址支付为例。因之前编写的类不适合Laravel框架，特做以下修改

> 修改说明：

1.修改文件名"alipay.trade.page.pay-PHP-UTF-8" 为 "alipay\_webpay\_with\_laravel"

2.删除readme.txt、idnex.php、notify\_url.php、return\_url.php

3.新增dataHandle.php文件，该文件为自定义文件用于调用支付宝下单及回调验签功能

4.修改aop/AopEncrypt.php、aop/AopClient.php、lotusphp\_runtime/Cookie/Cookie.php三个文件下的“encrypt”、“decrypt”方法，分别替换为“alipayEncrypt”、“alipayDecrypt”。当然具体修改名称也可以自定义，只需要不给系统方法冲突就行。具体可参考该链接：

5.修改aop\\AopClient.php 文件下第 413 行 each方法，将其修改为“foreach ($para\_temp as $key =&gt; $val) {”即可，具体可参考该链接：

> 使用说明：

1. 请先前配置根目录下config.php文件
2. 使用composer进行安装，具体命令如下 composer require paopao7/alipay\_webpay\_with\_laravel
3. 在需要使用的文件顶部，先use一下，具体代码如下：use paopao7\\alipay\_webpay\_with\_laravel;
4. 在需要调用获取支付参数的地方，先实例化 alipay\_webpay\_with\_laravel 类 然后再调用 go\_pay 方法，传入需要支付的金额和订单号 即可 具体代码如下： $alipay\_webpay\_with\_laravel = new composer\_test\\alipay\_webpay\_with\_laravel(); $result = $alipay\_webpay\_with\_laravel-&gt;test(0.01,"20180913094216");

    return $result;

> 使用说明：

具体使用请参考该链接：

> 联系方式：(添加请注明技术咨询)

本人QQ：980569038 TP集成支付宝群：594955172

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

2799d ago

### Community

Maintainers

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

---

Top Contributors

[![paopao7](https://avatars.githubusercontent.com/u/11934478?v=4)](https://github.com/paopao7 "paopao7 (12 commits)")

### Embed Badge

![Health badge](/badges/paopao7-alipay-webpay-with-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/paopao7-alipay-webpay-with-laravel/health.svg)](https://phpackages.com/packages/paopao7-alipay-webpay-with-laravel)
```

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