Download the PHP package gonon/laravel-digiflazz without Composer
On this page you can find all versions of the php package gonon/laravel-digiflazz. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-digiflazz
Laravel Digiflazz
An elegant, idiomatic Laravel integration for the official Gonon Digiflazz PHP SDK.
Requirements
- PHP 8.2+
- Laravel 11+
- gonon/digiflazz ^1.0
Installation
Configuration
Publish the configuration file to your application:
or
This will create a config/digiflazz.php file in your application where you can customize the default settings.
Next, set up your .env with the credentials from your Digiflazz Dashboard:
Usage (Facade)
The package provides an expressive Digiflazz facade that hooks directly into the underlying SDK. It handles all authentication and configuration seamlessly.
First, ensure you import the facade and necessary DTOs at the top of your classes:
1. Balance & Deposit
Check your account balance and request deposit instructions.
2. Products (Price List)
Fetch products, categories, or brands for Prepaid and Postpaid.
3. Prepaid Transactions (Topup)
Topup prepaid products (e.g., Pulsa, Data, Token PLN).
4. Postpaid Transactions (PPOB)
Postpaid transactions require two steps: Inquiry and Payment.
5. Webhooks
Digiflazz sends callbacks for transaction updates. The SDK securely parses and verifies the payload signature automatically.
Note: Make sure your DIGIFLAZZ_WEBHOOK_SECRET is set in your .env.
Advanced: Dependency Injection & Container
If you prefer passing the client via Dependency Injection instead of using the static Facade, the DigiflazzClient is automatically bound to the Service Container as a singleton.
You can also resolve the client manually using the app() helper anywhere in your application:
Exceptions
The SDK throws strictly typed exceptions that extend Gonon\Core\Exceptions\GononException.
Gonon\Digiflazz\Exceptions\DigiflazzException: Base exception.Gonon\Digiflazz\Exceptions\TransactionException: Thrown on invalid transaction responses.Gonon\Digiflazz\Exceptions\WebhookException: Thrown when a webhook signature is invalid or parsing fails.