PHP code example of jomweb / billplz-laravel

1. Go to this page and download the library: Download jomweb/billplz-laravel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jomweb / billplz-laravel example snippets


'providers' => [

    // ...

    Billplz\Laravel\BillplzServiceProvider::class,

],

'aliases' => [

    // ...

    'Billplz' => Billplz\Laravel\Billplz::class,

],

 

return [

    // ...

    'billplz' => [
        'key' => env('BILLPLZ_API_KEY'),
        'version' => env('BILLPLZ_VERSION', 'v4'),
        'x-signature' => env('BILLPLZ_X_SIGNATURE'),
        'sandbox' => env('BILLPLZ_SANDBOX', false),
    ],
];

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( /* ... */ );

}