jomweb/billplz-laravel
最新稳定版本:v4.0.0
Composer 安装命令:
composer require jomweb/billplz-laravel
包简介
Laravel adapter for Billplz
README 文档
README
Installation
To install through composer by using the following command:
composer require "jomweb/billplz-laravel"
Configuration
Next add the service provider in config/app.php.
'providers' => [ // ... Billplz\Laravel\BillplzServiceProvider::class, ],
Aliases
You might want to add Billplz\Laravel\Billplz to class aliases in config/app.php:
'aliases' => [ // ... 'Billplz' => Billplz\Laravel\Billplz::class, ],
Billplz Configuration
Next add the configuration in config/services.php.
<?php return [ // ... 'billplz' => [ 'key' => env('BILLPLZ_API_KEY'), 'version' => env('BILLPLZ_VERSION', 'v4'), 'x-signature' => env('BILLPLZ_X_SIGNATURE'), 'sandbox' => env('BILLPLZ_SANDBOX', false), ], ];
Usages
Creating Client
With jomweb/billplz-laravel you have the option to initiate the client using the following methods.
Facade
use Billplz\Laravel\Billplz; $bill = Billplz::bill()->create( /* ... */ );
IoC
$bill = resolve('billplz')->bill()->create( /* ... */ );
Dependency Injection
use Billplz\Client; // ... public function createBill(Client $client) { $bill = $client->bill()->create( /* ... */ ); }
统计信息
- 总下载量: 129.27k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 35
- 点击次数: 1
- 依赖项目数: 8
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-09-04