PHPackages                             dreamboy/easypay - 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. dreamboy/easypay

ActiveLibrary[Payment Processing](/categories/payments)

dreamboy/easypay
================

此组件旨在帮助你快速接入各种支付，让支付接入变得更加简单。

01PHP

Since May 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/DreamingPHPer/easypay)[ Packagist](https://packagist.org/packages/dreamboy/easypay)[ RSS](/packages/dreamboy-easypay/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Easypay
=======

[](#easypay)

此组件旨在帮助你快速接入各种支付，让支付接入变得更加简单。目前，已支持支付宝、微信的接入。

安装命令
----

[](#安装命令)

```
composer require dreamboy/easypay
```

使用方法
----

[](#使用方法)

所有支付方式的使用都以如下类为入口：

```
Dreamboy\Easypay\Payment
```

1、微信支付

```
use Dreamboy\Easypay\Payment;
$payment = Payment::wechat($config);
```

2、支付宝支付

```
