billplz-laravel maintained by jomweb
Description
Laravel adapter for Billplz
Author
Last update
2024/03/31 16:50
(dev-master)
License
Downloads
133 176
Last update
2024/03/31 16:50
License
Require
- php-http/guzzle7-adapter ^1.0
- guzzlehttp/guzzle ^7.2
- illuminate/support ^10.0 || ^11.0
- jomweb/billplz ^5.2
- php ^8.1
Last update
2024/03/31 16:50
License
Require
- php ^8.1
- guzzlehttp/guzzle ^7.2
- illuminate/support ^10.0 || ^11.0
- jomweb/billplz ^5.2
- php-http/guzzle7-adapter ^1.0
Last update
2023/05/02 07:20
License
Require
- php ^8.0
- guzzlehttp/guzzle ^7.0.1
- illuminate/support ^9.0 || ^10.0
- jomweb/billplz ^4.3.1 || ^5.0
- php-http/guzzle7-adapter ^1.0
Last update
2023/02/14 11:25
License
Require
- php ^8.0
- guzzlehttp/guzzle ^7.0.1
- illuminate/support ^9.0 || ^10.0
- jomweb/billplz ^4.3.1
- php-http/guzzle7-adapter ^1.0
Last update
2022/12/14 09:32
License
Require
- php ^8.0
- guzzlehttp/guzzle ^7.0.1
- illuminate/support ^9.0
- jomweb/billplz ^4.3.1
- php-http/guzzle7-adapter ^1.0
Last update
2022/12/14 09:29
License
Require
- php ^7.3 || ^8.0
- guzzlehttp/guzzle ^7.0.1
- illuminate/support ^8.75
- jomweb/billplz ^4.3.1
- php-http/guzzle7-adapter ^1.0
Last update
2022/12/14 09:29
License
Require
- php ^7.3 || ^8.0
- guzzlehttp/guzzle ^7.0.1
- illuminate/support ^8.75
- jomweb/billplz ^4.3.1
- php-http/guzzle7-adapter ^1.0
Last update
2022/02/08 03:12
License
Require
- php ^8.0
- guzzlehttp/guzzle ^7.0.1
- illuminate/support ^9.0
- jomweb/billplz ^4.3.1
- php-http/guzzle7-adapter ^1.0
Last update
2022/02/07 09:02
License
Require
- php ^7.3 || ^8.0
- guzzlehttp/guzzle ^7.0.1
- illuminate/support ^8.75
- jomweb/billplz ^4.3.1
- php-http/guzzle7-adapter ^1.0
Last update
2021/12/14 14:07
License
Require
- php ^7.3 || ^8.0
- guzzlehttp/guzzle ^7.0.1
- illuminate/support ^8.47
- jomweb/billplz ^4.3.1
- php-http/guzzle7-adapter ^1.0
Last update
2021/06/19 06:22
License
Require
- php ^7.3 || ^8.0
- guzzlehttp/guzzle ^7.0.1
- illuminate/support ^8.47
- jomweb/billplz ^4.3.1
- php-http/guzzle7-adapter ^1.0
Last update
2021/04/06 03:40
License
Require
- php ^7.3 || ^8.0
- guzzlehttp/guzzle ^7.0.1
- illuminate/support ^8.18.1
- jomweb/billplz ^4.3.1
- php-http/guzzle7-adapter ^0.1
Last update
2021/03/20 12:25
License
Require
- php ^7.3 || ^8.0
- guzzlehttp/guzzle ^7.0.1
- illuminate/support ^8.18.1
- jomweb/billplz ^4.3.1
- php-http/guzzle7-adapter ^0.1
Last update
2020/12/28 16:20
License
Require
- php ^7.3 || ^8.0
- guzzlehttp/guzzle ^7.0.1
- illuminate/support ^8.18.1
- jomweb/billplz ^4.3.1
- php-http/guzzle7-adapter ^0.1
Last update
2020/11/22 01:31
License
Require
- php-http/guzzle6-adapter ^2.0
- php >=7.2
- jomweb/billplz ^4.0
- illuminate/support ^6.0 || ^7.0 || ^8.0
Last update
2020/09/01 05:37
License
Require
- php >=7.2
- illuminate/support ^6.0 || ^7.0 || ^8.0
- jomweb/billplz ^4.0
- php-http/guzzle6-adapter ^2.0
Last update
2020/04/21 08:39
License
Require
- php >=7.2
- illuminate/support ^6.0 || ^7.0
- jomweb/billplz ^4.0
- php-http/guzzle6-adapter ^2.0
Last update
2020/02/17 11:37
License
Require
- php >=7.2
- illuminate/support ^6.0 || ^7.0
- jomweb/billplz ^4.0
- php-http/guzzle6-adapter ^2.0
Last update
2020/02/17 11:21
License
Require
- php >=7.1
- illuminate/support ^5.8 || ^6.0
- jomweb/billplz ^3.4 || ^4.0
- php-http/guzzle6-adapter ^2.0
Last update
2020/02/13 02:21
License
Require
- php >=7.2
- illuminate/support ^6.0 || ^7.0
- jomweb/billplz ^4.0
- php-http/guzzle6-adapter ^2.0
Last update
2020/01/14 23:54
License
Require
- php >=7.1
- illuminate/support ^5.8 || ^6.0
- jomweb/billplz ^3.4 || ^4.0
- php-http/guzzle6-adapter ^2.0
Last update
2019/11/19 01:48
License
Require
- php ^7.1
- illuminate/support ^5.8 || ^6.0
- jomweb/billplz ^3.3.1
- php-http/guzzle6-adapter ^2.0
Last update
2019/10/18 05:20
License
Require
- php ^7.1
- illuminate/support ^5.8 || ^6.0
- jomweb/billplz ^3.3.1
- php-http/guzzle6-adapter ^2.0
Last update
2019/08/28 04:33
License
Require
- php ^7.1
- illuminate/support ^5.8 || ^6.0
- jomweb/billplz ^3.0
- php-http/guzzle6-adapter ^1.1.1 || ^2.0
Last update
2019/06/18 04:06
License
Require
- php ^7.1
- illuminate/support ^5.8
- jomweb/billplz ^3.0
- php-http/guzzle6-adapter ^1.1.1 || ^2.0
Last update
2019/05/06 15:44
License
Require
- php ^7.1
- illuminate/support ^5.8
- jomweb/billplz ^3.0
- php-http/guzzle6-adapter ^1.1.1 || ^2.0
Last update
2019/03/17 12:29
License
Require
- php ^7.1
- illuminate/support ^5.8
- jomweb/billplz ^3.0
- php-http/guzzle6-adapter ^1.1.1 || ^2.0
Last update
2019/03/15 13:09
License
Require
- php ^7.1
- illuminate/support ^5.5
- jomweb/billplz ^3.0
- php-http/guzzle6-adapter ^1.1.1 || ^2.0
Last update
2018/12/24 09:12
License
Require
- php ^7.1
- illuminate/support ^5.5
- jomweb/billplz ^3.0
- php-http/guzzle6-adapter ^1.1.1
Last update
2018/04/08 06:39
License
Require
- jomweb/billplz ^1.2 || ^2.0
- php-http/guzzle6-adapter ^1.1.1
- illuminate/support ^5.1
Last update
2018/03/26 08:33
License
Require
- jomweb/billplz ^1.2
- php-http/guzzle6-adapter ^1.1.1
- illuminate/support ^5.1
Last update
2018/03/25 13:24
License
Require
- jomweb/billplz ^1.2
- php-http/guzzle6-adapter ^1.1.1
- illuminate/support ^5.1
Billplz adapter for Laravel
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( /* ... */ );
}