PHP code example of svakode / svaflazz

1. Go to this page and download the library: Download svakode/svaflazz 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/ */

    

svakode / svaflazz example snippets


return [
    /*
    * Digiflazz will a request to digiflazz
    */
    'username' => env('DIGIFLAZZ_USERNAME'),
    'key' => env('DIGIFLAZZ_KEY'),

    /*
    * Digiflazz Base URL
    */
    'base_url' => env('DIGIFLAZZ_BASE_URL', 'https://api.digiflazz.com/v1'),
];
bash
php artisan vendor:publish --provider="Svakode\Svaflazz\SvaflazzServiceProvider"

Svaflazz::priceList($buyer_sku_code);

php artisan svaflazz:topup