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

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

izyue/yii2-alipay
=================

alipay for Yii2

0.0.1(9y ago)2565212[2 issues](https://github.com/liulipeng/yii2-alipay/issues)BSD-3-ClausePHP

Since Jul 4Pushed 9y ago2 watchersCompare

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

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

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

[](#yii2-alipay)

支付宝的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 izyue/yii2-alipay "*"

```

or for the dev-master

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

```

Or, you may add

```
"izyue/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)

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

```
