PHPackages                             latipay/laravel-plugin - 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. latipay/laravel-plugin

ActiveLibrary

latipay/laravel-plugin
======================

latipay-plugin php compser

1.2(6y ago)09MITPHPPHP &gt;=5.6CI failing

Since Mar 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/siqinglin/latipay-plugin-php-compser)[ Packagist](https://packagist.org/packages/latipay/laravel-plugin)[ RSS](/packages/latipay-laravel-plugin/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

latipay-plugin php compser
==========================

[](#latipay-plugin-php-compser)

运行环境
----

[](#运行环境)

- PHP 5.6+
- 示例为Laravel的使用方法, 其他php框架的自己行加载config调用内部类

安装
--

[](#安装)

```
composer require latipay/laravel-plugin
```

\####添加 service provider（optional. if laravel &lt; 5.5)

```
// laravel < 5.5
Latipay\LaravelPlugin\PayServiceProvider::class,

// lumen
$app->register(Latipay\LaravelPlugin\PayServiceProvider::class);

```

\####配置文件

```
// laravel
php artisan vendor:publish --provider="Latipay\LaravelPlugin\PayServiceProvider"

// Lumen
将`vendor/latipay/laravel-plugin/config/config.php`拷贝到`项目根目录/config`目录下，并将文件名改成`latipay.php`

```

`.env`文件中配置

```
LATIPAY_API_KEY=
LATIPAY_USER_ID=
LATIPAY_WALLET_ID_NZD=
LATIPAY_WALLET_ID_AUD=
LATIPAY_WALLET_ID_CNY=

```

示例
--

[](#示例)

```
