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

ActiveYii2-extension[Payment Processing](/categories/payments)

qianlizeguo/yii2-alipay
=======================

alipay for Yii2

1.0.4(4y ago)07BSD-3-ClausePHP

Since Aug 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Jurassic-Park/yii-alipay)[ Packagist](https://packagist.org/packages/qianlizeguo/yii2-alipay)[ RSS](/packages/qianlizeguo-yii2-alipay/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (1)Versions (5)Used By (0)

Yii2-Alipay
===========

[](#yii2-alipay)

1.0.4
=====

[](#104)

支付宝的Yii2扩展包，支持支付宝所有接口，只需更换对应接口的参数即可！

### Install With Composer

[](#install-with-composer)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require qianlizeguo/yii2-alipay "*"

```

or for the dev-master

```
php composer.phar require qianlizeguo/yii2-alipay "dev"

```

Or, you may add

```
"qianlizeguo/yii2-alipay": "*"

```

to the require section of your `composer.json` file and execute `php composer.phar update`.

Usage
=====

[](#usage)

Once the extension is installed, simply modify your application configuration as follows:

```
return [
    'alipayPartner' => '2088411622500000',
    'alipaySellerEmail' => 'xxx@xxx.com.cn',
    'alipayKey' => 'j8zjlejjebpgei98cbbgbbmwfr4asdf',
];
```

AlipayController
================

[](#alipaycontroller)

这是一个批量付款的栗子，支付宝其它接口换成相应的接口即可使用

```
