jomweb/billplz-laravel
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( /* ... */ );
}
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
644,549,754
9,698
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
423,477,751
607
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
403,217,078
4,664
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v4.0.0 | ^8.1 | ^10.0 || | MIT | |
| v3.3.0 | ^8.0 | ^9.0 || | MIT | |
| v3.2.0 | ^8.0 | ^9.0 || | MIT | |
| v3.1.0 | ^8.0 | ^9.0 | MIT | |
| v3.0.0 | ^8.0 | ^9.0 | MIT | |
| v2.3.0 | ^7.3 || | ^8.75 | MIT | |
| v2.2.2 | ^7.3 || | ^8.75 | MIT | |
| v2.2.1 | ^7.3 || | ^8.47 | MIT | |
| v2.2.0 | ^7.3 || | ^8.47 | MIT | |
| v2.1.0 | ^7.3 || | ^8.18.1 | MIT | |
| v2.0.1 | ^7.3 || | ^8.18.1 | MIT | |
| v2.0.0 | ^7.3 || | ^8.18.1 | MIT | |
| v1.5.3 | >=7.2 | ^6.0 || | MIT | |
| v1.5.2 | >=7.2 | ^6.0 || | MIT | |
| v1.5.1 | >=7.2 | ^6.0 || | MIT | |
| v1.5.0 | >=7.2 | ^6.0 || | MIT | |
| v1.4.1 | >=7.1 | ^5.8 || | MIT | |
| v1.4.0 | >=7.1 | ^5.8 || | MIT | |
| v1.3.1 | ^7.1 | ^5.8 || | MIT | |
| v1.3.0 | ^7.1 | ^5.8 || | MIT | |
| v1.2.3 | ^7.1 | ^5.8 || | MIT | |
| v1.2.2 | ^7.1 | ^5.8 | MIT | |
| v1.2.1 | ^7.1 | ^5.8 | MIT | |
| v1.2.0 | ^7.1 | ^5.8 | MIT | |
| v1.1.1 | ^7.1 | ^5.5 | MIT | |
| v1.1.0 | ^7.1 | ^5.5 | MIT | |
| v1.0.2 | ^5.1 | MIT | ||
| v1.0.1 | ^5.1 | MIT | ||
| v1.0.0 | ^5.1 | MIT |