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

ActiveLibrary[API Development](/categories/api)

kidino/billplz
==============

PHP library for BillPlz API, Malaysia's online payment

v0.1.1(10y ago)104828[1 issues](https://github.com/kidino/billplz/issues)MITPHP

Since Jan 2Pushed 9y ago3 watchersCompare

[ Source](https://github.com/kidino/billplz)[ Packagist](https://packagist.org/packages/kidino/billplz)[ Docs](https://github.com/kidino/billplz)[ RSS](/packages/kidino-billplz/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

PHP BillPlz
===========

[](#php-billplz)

This is a simple library for working with Malaysia's BillPlz online payment. Be sure that you read the BillPlz API Documentation and understand what it offers before using this library.

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

[](#installation)

### Composer

[](#composer)

`composer require kidino/billplz`

### Github

[](#github)

Just download any of the release or clone this repository. You may need to manage how you load the library with namespacing yourself.

How to use
----------

[](#how-to-use)

### Create New Collection

[](#create-new-collection)

Be sure that you save the result. Result you get the is normal Curl result.

```
use Kidino\Billplz\Billplz;

$bplz = new Billplz(array('api_key' => 'your api key'));
$bplz->set_data('title','Home Tutoring');
$bplz->set_data('logo','/xampp/htdocs/billplz/logo.png');
$result = $bplz->create_collection();
list($rheader, $rbody) = explode("\n\n", $result);
$bplz_result = json_decode($rbody);
```

### Create a New Bill

[](#create-a-new-bill)

Please note that you can also use `set_data()` with an array instead of two parameters.

```
use Kidino\Billplz\Billplz;

$bplz = new Billplz(array('api_key' => 'your api key'));
$bplz->set_data(array(
	'collection_id' => 'your collection id',
	'email' => 'customer@email.com',
	'mobile' => '60123456789',
	'name' => "Jone Doe",
	'due_at' => "2016-1-1",
	'amount' => 2000, // RM20
	'callback_url' => "http://yourwebsite.com/return_url"
));

$result = $bplz->create_bill();
list($rheader, $rbody) = explode("\n\n", $result);
$bplz_result = json_decode($rbody);
```

### Get Bill Details

[](#get-bill-details)

```
use Kidino\Billplz\Billplz;

$bplz = new Billplz(array('api_key' => 'your api key'));
$result = $bplz->get_bill( 'your bill id' );
list($rheader, $rbody) = explode("\n\n", $result);
$bplz_result = json_decode($rbody);
```

### Delete Bill

[](#delete-bill)

```
use Kidino\Billplz\Billplz;

$bplz = new Billplz(array('api_key' => 'your api key'));
$result = $bplz->delete_bill( 'your bill id' );
list($rheader, $rbody) = explode("\n\n", $result);
$bplz_result = json_decode($rbody);
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.5% 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 ~0 days

Total

2

Last Release

3789d ago

### Community

Maintainers

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

---

Top Contributors

[![kidino](https://avatars.githubusercontent.com/u/1450433?v=4)](https://github.com/kidino "kidino (6 commits)")[![metallurgical](https://avatars.githubusercontent.com/u/6198891?v=4)](https://github.com/metallurgical "metallurgical (5 commits)")

---

Tags

apiMalaysiabillplz

### Embed Badge

![Health badge](/badges/kidino-billplz/health.svg)

```
[![Health](https://phpackages.com/badges/kidino-billplz/health.svg)](https://phpackages.com/packages/kidino-billplz)
```

###  Alternatives

[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.0k](/packages/m165437-laravel-blueprint-docs)

PHPackages © 2026

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