| Package Data | |
|---|---|
| Maintainer Username: | crynobone |
| Maintainer Contact: | crynobone@gmail.com (Mior Muhammad Zaki) |
| Package Create Date: | 2016-08-21 |
| Package Last Update: | 2024-03-31 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-22 15:11:52 |
| Package Statistics | |
|---|---|
| Total Downloads: | 128,250 |
| Monthly Downloads: | 712 |
| Daily Downloads: | 15 |
| Total Stars: | 33 |
| Total Watchers: | 5 |
| Total Forks: | 11 |
| Total Open Issues: | 3 |
To install through composer, simply put the following in your composer.json file:
{
"require": {
"jomweb/billplz-laravel": "^1.1"
}
}
And then run composer install from the terminal.
Above installation can also be simplify by using the following command:
composer require "jomweb/billplz-laravel=^1.1"
Next add the service provider in config/app.php.
'providers' => [
// ...
Billplz\Laravel\BillplzServiceProvider::class,
],
You might want to add Billplz\Laravel\Billplz to class aliases in config/app.php:
'aliases' => [
// ...
'Billplz' => Billplz\Laravel\Billplz::class,
],
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),
],
];
With jomweb/billplz-laravel you have the option to initiate the client using the following methods.
use Billplz\Laravel\Billplz;
$bill = Billplz::bill()->create( /* ... */ );
$bill = resolve('billplz')->bill()->create( /* ... */ );
use Billplz\Client;
// ...
public function createBill(Client $client)
{
$bill = $client->bill()->create( /* ... */ );
}