PHPackages                             nurfaizfy/digiflazz-php-library - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. nurfaizfy/digiflazz-php-library

ActiveLibrary[API Development](/categories/api)

nurfaizfy/digiflazz-php-library
===============================

Unofficial PHP Library Digiflazz

1.0.3.1(3y ago)1121711[1 issues](https://github.com/nurfaizfy/digiflazz-php-library/issues)[2 PRs](https://github.com/nurfaizfy/digiflazz-php-library/pulls)MITPHP

Since Jun 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/nurfaizfy/digiflazz-php-library)[ Packagist](https://packagist.org/packages/nurfaizfy/digiflazz-php-library)[ RSS](/packages/nurfaizfy-digiflazz-php-library/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (6)Used By (0)

Digiflazz PHP Library
=====================

[](#digiflazz-php-library)

[![Latest Stable Version](https://camo.githubusercontent.com/93c5a14643342f04564e7c28d19d471bd2ed62ae34e8d5fa9779cf8e32268e27/687474703a2f2f706f7365722e707567782e6f72672f6e75726661697a66792f64696769666c617a7a2d7068702d6c6962726172792f76)](https://packagist.org/packages/nurfaizfy/digiflazz-php-library)[![Total Downloads](https://camo.githubusercontent.com/27ff83a924067369d870166b4855b30cdd71e183013169cca3d9e98ea28b4fe5/687474703a2f2f706f7365722e707567782e6f72672f6e75726661697a66792f64696769666c617a7a2d7068702d6c6962726172792f646f776e6c6f616473)](https://packagist.org/packages/nurfaizfy/digiflazz-php-library)[![License](https://camo.githubusercontent.com/854ca620d236cdd8bc734b453cd584b9c4bb4f328972b6bd2fc439e932236338/687474703a2f2f706f7365722e707567782e6f72672f6e75726661697a66792f64696769666c617a7a2d7068702d6c6962726172792f6c6963656e7365)](https://packagist.org/packages/nurfaizfy/digiflazz-php-library)

This library is unofficial Digiflazz API written with PHP.

- [Documentation](#documentation)
- [Installation](#installation)
- [Usage](#usage)
- [Methods' Signature and Examples](#methods-signature-and-examples)
    - [Balance](#balance)
        - [Get Balance](#get-balance)
    - [Price List](#price-list)
        - [Get Price List](#get-price-list)
    - [Deposit](#deposit)
        - [Create Deposit Ticket](#create-deposit-ticket)
    - [Transaction](#transaction)
        - [Create Transaction](#create-transaction)
        - [Inquiry Postpaid](#inquiry-postpaid)
        - [Pay Postpaid](#pay-postpaid)
        - [Inquiry PLN](#inquiry-pln)
    - [Callback](#callback)
        - [Get Callback](#get-callback)
- [Exceptions](#exceptions)
    - [InvalidArgumentException](#invalidargumentexception)
    - [ApiException](#apiexception)
- [Contributing](#contributing)

---

Documentation
-------------

[](#documentation)

For the API documentation, check [Digiflazz API Reference](https://developer.digiflazz.com/api/).

Installation
------------

[](#installation)

Install digiflazz-php-library with composer by following command:

```
composer require nurfaizfy/digiflazz-php-library
```

or add it manually in your `composer.json` file.

Usage
-----

[](#usage)

Configure package with your account's secret key obtained from [Digiflazz Dashboard](https://member.digiflazz.com/buyer-area/connection/api).

```
use Gonon\Digiflazz\Digiflazz;
Digiflazz::initDigiflazz('username', 'apikey');
```

Methods' Signature and Examples
-------------------------------

[](#methods-signature-and-examples)

### Balance

[](#balance)

#### Get Balance

[](#get-balance)

```
\Gonon\Digiflazz\Balance::getBalance();
```

Usage example:

```
$getBalance = \Gonon\Digiflazz\Balance::getBalance();
var_dump($getBalance);
```

### Price List

[](#price-list)

#### Get Price List

[](#get-price-list)

```
\Gonon\Digiflazz\PriceList::getPrePaid(); // Prepaid product
\Gonon\Digiflazz\PriceList::getPostPaid(); // Postpaid product
```

Usage example:

```
$priceList = \Gonon\Digiflazz\PriceList::getPrePaid();
var_dump($priceList);
```

### Deposit

[](#deposit)

#### Create Deposit Ticket

[](#create-deposit-ticket)

```
\Gonon\Digiflazz\Deposit::createDeposit(array $params);
```

Parameters for this method

NameRequiredDescription`amount_bank``yes`The deposit amount`bank``yes`The name of the destination bank to which your transfer will be made (BRI, BCA, MANDIRI)`owner_name``yes`The name of the account holder who made the deposit transfer to DigiflazzUsage example:

```
$params = [
    'amount' => '200000',
    'bank' => 'BCA',
    'owner_name' => 'Digiflazz',
];
$createDeposit = \Gonon\Digiflazz\Deposit::createDeposit($params);
var_dump($createDeposit);
```

### Transaction

[](#transaction)

#### Create Transaction

[](#create-transaction)

```
\Gonon\Digiflazz\Transaction::createTransaction(array $params);
```

Parameters for this method

NameRequiredDescription`buyer_sku_code``yes`Product SKU`customer_no``yes`Customer number`ref_id``yes`Your unique reference IDUsage example:

```
$params = [
    'buyer_sku_code' => 'xl10',
    'customer_no' => '08123456789',
    'ref_id' => 'some1d',
];
$createTrasaction = \Gonon\Digiflazz\Transaction::createTransaction($params);
var_dump($createTrasaction);
```

#### Inquiry Postpaid

[](#inquiry-postpaid)

```
\Gonon\Digiflazz\Transaction::inquiryPostpaid(array $params);
```

Parameters for this method

NameRequiredDescription`buyer_sku_code``yes`Product SKU`customer_no``yes`Customer number`ref_id``yes`Your unique reference IDUsage example:

```
$params = [
    'buyer_sku_code' => 'xl10',
    'customer_no' => '08123456789',
    'ref_id' => 'some1d',
];
$pascaInquiry = \Gonon\Digiflazz\Transaction::inquiryPostpaid($params);
var_dump($pascaInquiry);
```

#### Pay Postpaid

[](#pay-postpaid)

```
\Gonon\Digiflazz\Transaction::payPostpaid(array $params);
```

Parameters for this method

NameRequiredDescription`buyer_sku_code``yes`Product SKU`customer_no``yes`Customer number`ref_id``yes`Your unique reference IDUsage example:

```
$params = [
    'buyer_sku_code' => 'xl10',
    'customer_no' => '08123456789',
    'ref_id' => 'some1d',
];
$payPasca = \Gonon\Digiflazz\Transaction::payPostpaid($params);
var_dump($payPasca);
```

#### Inquiry PLN

[](#inquiry-pln)

```
\Gonon\Digiflazz\Transaction::inquiryPLN(array $params);
```

Parameters for this method

NameRequiredDescription`customer_no``yes`Customer numberUsage example:

```
$params = [
    'customer_no' => '123456789',
];
$iquiryPLN = \Gonon\Digiflazz\Transaction::inquiryPLN($params);
var_dump($iquiryPLN);
```

### Callback

[](#callback)

#### Get Callback

[](#get-callback)

Use this method to get Callback

```
\Gonon\Digiflazz\Callback::getCallback();
```

Use this method to get JSON Callback

```
\Gonon\Digiflazz\Callback::getJsonCallback();
```

Exceptions
----------

[](#exceptions)

### InvalidArgumentException

[](#invalidargumentexception)

`InvalidArgumentException` will be thrown if the argument provided by user is not sufficient to create the request.

For example, there are required arguments such as `ref_id`, `customer_no`, and `buyer_sku_code` to create an transaction. If user lacks one or more arguments when attempting to create one, `InvalidArgumentException` will be thrown.

`InvalidArgumentException` is derived from PHP's `InvalidArgumentException`. For more information about this Exception methods and properties, please check [PHP Documentation](https://www.php.net/manual/en/class.invalidargumentexception.php).

### ApiException

[](#apiexception)

`ApiException` wraps up Digiflazz API error. This exception will be thrown if there are errors from Digiflazz API side.

To get exception message:

```
try {
    $transaction = \Gonon\Digiflazz\Transaction::createTransaction(array $params);
} catch (\Gonon\Digiflazz\Exceptions\ApiException $e) {
    var_dump($e->getMessage());
}
```

To get exception HTTP error code:

```
try {
    $transaction = \Gonon\Digiflazz\Transaction::createTransaction(array $params);
} catch (\Gonon\Digiflazz\Exceptions\ApiException $e) {
    var_dump($e->getCode());
}
```

To get exception Digiflazz API error code:

```
try {
    $transaction = \Gonon\Digiflazz\Transaction::createTransaction(array $params);
} catch (\Gonon\Digiflazz\Exceptions\ApiException $e) {
    var_dump($e->getErrorCode());
}
```

Contributing
------------

[](#contributing)

For any requests, bugs, or comments, please open an [issue](https://github.com/nurfaizfy/digiflazz-php-library/issues)

### Installing Packages

[](#installing-packages)

Before you start to code, run this command to install all of the required packages. Make sure you have `composer` installed in your computer

```
composer install
```

There is a pre-commit hook to run phpcs and phpcbf. Please make sure they passed before making commits/pushes.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~19 days

Total

5

Last Release

1351d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fc64e00ab72c1b78f5ada3b983c7ee69701b71dd3c79c800235c810412037600?d=identicon)[nurfaizfy](/maintainers/nurfaizfy)

---

Top Contributors

[![nurfaizfy](https://avatars.githubusercontent.com/u/36664080?v=4)](https://github.com/nurfaizfy "nurfaizfy (10 commits)")

---

Tags

apidigiflazzphpppob

### Embed Badge

![Health badge](/badges/nurfaizfy-digiflazz-php-library/health.svg)

```
[![Health](https://phpackages.com/badges/nurfaizfy-digiflazz-php-library/health.svg)](https://phpackages.com/packages/nurfaizfy-digiflazz-php-library)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M648](/packages/sylius-sylius)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[tamara-solution/php-sdk

Tamara PHP Client Library

10259.4k1](/packages/tamara-solution-php-sdk)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
