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

ActiveLibrary[Payment Processing](/categories/payments)

crisen/laravel-alipay
=====================

the alipay package of laravel 5

v0.0.2(9y ago)0581[1 issues](https://github.com/crisenchou/laravel-alipay/issues)MITPHP

Since Dec 9Pushed 9y ago1 watchersCompare

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

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

laravel-alipay
==============

[](#laravel-alipay)

> 支付宝扫码支付

安装
--

[](#安装)

> composer require "crisen/laravel-alipay":"dev-master"

文档
--

[](#文档)

1. 注册服务提供者 config目录下app.php文件

    ```
     'providers' => [
     	...
     	Crisen\LaravelAlipay\AlipayServiceProvider::class,
     }

    ```
2. 添加门面

    ```
     'aliases' => [
     	...
    	'Alipay' => Crisen\LaravelAlipay\Facades\Alipay::class,
    ]

    ```
3. 配置文件

    ```
     php artisan vendor publish

    ```

使用方法
----

[](#使用方法)

### 扫码支付

[](#扫码支付)

```
$alipay = Alipay::factory('precreate');
$alipay->setBizContent([
    'out_trade_no' => $outTradeNo,
    'subject' => 'test',
    'total_amount' => 1,
    'body' => 'test goods',
])->send();
if($alipay->isSuccessful() && $alipay->isTradeStatusOk()){
    $codeUrl = $alipay->getCodeUrl();
    echo $codeUrl;
}
```

### 订单查询

[](#订单查询)

```
$alipay = Alipay::factory('query');
$bizCOntent = [
	'out_trade_no' => 'xxx'//数据库中的订单号
];
$alipay->setBizContent($bizContent)->send();
if($alipay->isSuccessful() && $alipay->isTradeStatusOk()){
	//dd($alipay->getRequestData();
}
```

### 异步通知

[](#异步通知)

```
 $alipay = Alipay::factory('notify')->options($request->all());
 if ($alipay->isPaid()) {
    // echo $alipay->getOutTradeNo();
 }
```

License
-------

[](#license)

MIT

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

3491d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

alipay

### Embed Badge

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

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

###  Alternatives

[yansongda/laravel-pay

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

1.1k363.8k11](/packages/yansongda-laravel-pay)[latrell/alipay

支付宝SDK在Laravel5封装包。

40349.2k](/packages/latrell-alipay)

PHPackages © 2026

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