PHPackages                             nasrulhazim/billplz - 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. nasrulhazim/billplz

ActiveLibrary[API Development](/categories/api)

nasrulhazim/billplz
===================

PHP Agnostic library for working with BillPlz API

v1.1.1(8y ago)146MITPHPPHP &gt;=5.6

Since Aug 15Pushed 8y agoCompare

[ Source](https://github.com/nasrulhazim/billplz)[ Packagist](https://packagist.org/packages/nasrulhazim/billplz)[ RSS](/packages/nasrulhazim-billplz/feed)WikiDiscussions 1.1 Synced today

READMEChangelogDependencies (7)Versions (34)Used By (0)

PHP framework agnostic library for working with BillPlz API v3 and beyond...
============================================================================

[](#php-framework-agnostic-library-for-working-with-billplz-api-v3-and-beyond)

[![Build Status](https://camo.githubusercontent.com/0b939f1612f050da86c4b712871b7d2e284d797c57782f091c36494d09e07e65/68747470733a2f2f7472617669732d63692e6f72672f6a6f6d7765622f62696c6c706c7a2e7376673f6272616e63683d312e30)](https://travis-ci.org/jomweb/billplz)[![Latest Stable Version](https://camo.githubusercontent.com/d6cc7443d556dbb33437952a540e0dae540bb0d8fb67497c6772a5d7e4907d51/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6d7765622f62696c6c706c7a2f76657273696f6e)](https://packagist.org/packages/jomweb/billplz)[![Total Downloads](https://camo.githubusercontent.com/068494d2d6b7930261fa6c16ef5bfd7d1f62a790fe883395c12feac54bcd08dc/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6d7765622f62696c6c706c7a2f646f776e6c6f616473)](https://packagist.org/packages/jomweb/billplz)[![Latest Unstable Version](https://camo.githubusercontent.com/75dd11fe7064aeea78fea974e04bb628de5b1a77b37037f6333196f1f280386c/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6d7765622f62696c6c706c7a2f762f756e737461626c65)](//packagist.org/packages/jomweb/billplz)[![License](https://camo.githubusercontent.com/1d7beb07af85b88837d8565296f4774333275032e2c3b02ccb8458ef925b50c9/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6d7765622f62696c6c706c7a2f6c6963656e7365)](https://packagist.org/packages/jomweb/billplz)

- [Installation](#installation)
- [Usages](#usages)
    - [Creating Billplz Client](#creating-billplz-client)
    - [Creating Collection Request](#creating-collection-request)
    - [Creating Bill Request](#creating-bill-request)
    - [Creating Check Request](#creating-check-request)
    - [Creating Transaction Request](#creating-transaction-request)
    - [Creating Bank Request](#creating-bank-request)
- [Handling Response](#handling-response)
    - [Checking the Response HTTP Status](#checking-the-response-http-status)
    - [Checking the Response Header](#checking-the-response-header)

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

[](#installation)

To install through composer, simply put the following in your `composer.json` file:

```
{
    "require": {
        "jomweb/billplz": "^1.0",
        "php-http/guzzle6-adapter": "^1.1"
    }
}
```

### HTTP Adapter

[](#http-adapter)

Instead of utilizing `php-http/guzzle6-adapter` you might want to use any other adapter that implements `php-http/client-implementation`. Check [Clients &amp; Adapters](http://docs.php-http.org/en/latest/clients.html) for PHP-HTTP.

Usages
------

[](#usages)

### Creating Billplz Client

[](#creating-billplz-client)

You can start by creating a Billplz client by using the following code (which uses `php-http/guzzle6-adapter`):

```
