khaled-dev/billplz-laravel is a Laravel package for laravel adapter for billplz.
It currently has 0 GitHub stars and 2 downloads on Packagist (latest version 4.1.2).
Install it with composer require khaled-dev/billplz-laravel.
Discover more Laravel packages by khaled-dev
or browse all Laravel packages to compare alternatives.
Last updated
To install through composer by using the following command:
composer require "jomweb/billplz-laravel"
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( /* ... */ );
}