Download the PHP package asiadevmedia/digiflazz-librarys without Composer

On this page you can find all versions of the php package asiadevmedia/digiflazz-librarys. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package digiflazz-librarys

Digiflazz PHP Library

Latest Stable Version Total Downloads License

This library is unofficial Digiflazz API written with PHP.


Documentation

For the API documentation, check Digiflazz API Reference.

Installation

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

or add it manually in your composer.json file.

Usage

Configure package with your account's secret key obtained from Digiflazz Dashboard.

Methods' Signature and Examples

Balance

Get Balance

Usage example:

Price List

Get Price List

Usage example:

Deposit

Create Deposit Ticket

Parameters for this method Name Required Description
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 Digiflazz

Usage example:

Transaction

Create Transaction

Parameters for this method Name Required Description
buyer_sku_code yes Product SKU
customer_no yes Customer number
ref_id yes Your unique reference ID

Usage example:

Inquiry Postpaid

Parameters for this method Name Required Description
buyer_sku_code yes Product SKU
customer_no yes Customer number
ref_id yes Your unique reference ID

Usage example:

Pay Postpaid

Parameters for this method Name Required Description
buyer_sku_code yes Product SKU
customer_no yes Customer number
ref_id yes Your unique reference ID

Usage example:

Inquiry PLN

Parameters for this method Name Required Description
customer_no yes Customer number

Usage example:

Callback

Get Callback

Use this method to get Callback

Use this method to get JSON Callback

Exceptions

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.

ApiException

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

To get exception message:

To get exception HTTP error code:

To get exception Digiflazz API error code:

Contributing

For any requests, bugs, or comments, please open an issue

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

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


All versions of digiflazz-librarys with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.0
symfony/http-foundation Version ^6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package asiadevmedia/digiflazz-librarys contains the following files

Loading the files please wait ...