PHPackages                             neonexxa/billplz-wrapper - 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. [Payment Processing](/categories/payments)
4. /
5. neonexxa/billplz-wrapper

ActiveLibrary[Payment Processing](/categories/payments)

neonexxa/billplz-wrapper
========================

php billplz wrapper

v2.0(6y ago)2805↓83.3%1[1 issues](https://github.com/neonexxa/billplz-wrapper/issues)MITPHPPHP &gt;=5.3.0

Since Mar 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/neonexxa/billplz-wrapper)[ Packagist](https://packagist.org/packages/neonexxa/billplz-wrapper)[ RSS](/packages/neonexxa-billplz-wrapper/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (11)Used By (0)

```
wrapper v3.0 will be updated next month with the mastercard/visa

```

PHP Payment Gateway
===================

[](#php-payment-gateway)

This is a php library for working with [Billplz v3](https://www.billplz.com/api). Be sure that you signup and get your api token from there. Im creating this because most of the api i used all are compatible with v2 im afraid it doesnt work with v3. im just worried, so i built one package for my own use on my other project.

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

[](#installation)

### Composer

[](#composer)

`composer require neonexxa/billplz-wrapper`

### Github

[](#github)

Just download any of the release or clone this repository. Feel free to use the way you want it.

### For Laravel

[](#for-laravel)

1 ) in your config/app.php add below to your service provider class

```
Neonexxa\BillplzWrapperV3\BillplzServiceProvider::class,
```

2 ) put your key in the *.env* file

```
BILLPLZ_API_KEY=xxxxx-xxxx-xxxx-xxxx-xxxx

```

3 ) run

```
composer dump-autoload && php artisan config:cache && php artisan cache:clear
php artisan vendor:publish --provider="Neonexxa\BillplzWrapperV3\BillplzServiceProvider"
```

in order to get the config setting ready for you.

How to use (Create)
-------------------

[](#how-to-use-create)

### Create Collection

[](#create-collection)

Required parameter

- title

```
use Neonexxa\BillplzWrapperV3\BillplzCollection;

$res = new BillplzCollection;
$res->title = "New Collection";
// and other optional params
$res = $res->create_collection();
list($rheader, $rbody, $rurl) = explode("\n\r\n", $res);
$bplz_result = json_decode($rurl);
```

### Get Collection

[](#get-collection)

Required parameter

- collection\_id

```
use Neonexxa\BillplzWrapperV3\BillplzCollection;
$res1 = new BillplzCollection;
$res1->collection_id = "xxxxxx";
$res1 = $res1->get_collection();
list($rheader, $rbody, $rurl) = explode("\n\r\n", $res1);
$bplz_result = json_decode($rurl);
```

### Get Collection Index

[](#get-collection-index)

```
use Neonexxa\BillplzWrapperV3\BillplzCollection;
$res2 = new BillplzCollection;
$res2 = $res2->get_collection();
list($rheader, $rbody, $rurl) = explode("\n\r\n", $res2);
$bplz_result = json_decode($rurl);
```

### Activate Collection

[](#activate-collection)

Required parameter

- collection\_id

```
use Neonexxa\BillplzWrapperV3\BillplzCollection;
$res5 = new BillplzCollection;
$res5->collection_id = "xxxxxx";
$res5 = $res5->activate_collection();
```

### Deactivate Collection

[](#deactivate-collection)

Required parameter

- collection\_id
- activate=false

```
use Neonexxa\BillplzWrapperV3\BillplzCollection;
$res4 = new BillplzCollection;
$res4->collection_id = "xxxxxx";
$res4->activate = false ;
$res4 = $res4->activate_collection();
list($rheader, $rbody, $rurl) = explode("\n\r\n", $res4);
$bplz_result = json_decode($rurl);
```

### Create Open Collection

[](#create-open-collection)

Required parameter

- title
- description
- amount (will be ignore if fixed\_amount=false)

```
$res = new BillplzOpenCollection;
$res->title = "New Open collection";
$res->description = "New Open collection desc";
// $res->fixed_amount = false;
$res->amount = 2*100;
$res = $res->create_opencollection();
list($rheader, $rbody, $rurl) = explode("\n\r\n", $res);
$bplz_result = json_decode($rurl);
```

### Get Open Collection

[](#get-open-collection)

Required parameter

- collection\_id

```
$res2 = new BillplzOpenCollection;
$res2->collection_id = $bplz_result->id;
$res2 = $res2->get_opencollection();
```

### Get Open Collection Index

[](#get-open-collection-index)

```
$res3 = new BillplzOpenCollection;
$res3 = $res3->get_opencollection();
```

### Create bill

[](#create-bill)

Required parameter

- collection\_id
- description
- email
- name
- amount
- callback\_url

```
$res0 = new BillplzBill;
$res0->collection_id = "xxxxxx"; // which collection you want to park this bill under
$res0->description = "New BIll"; // bill description
$res0->email = "Receipientofthebill@receipientcompany.com"; // client email
$res0->name = "receipientname"; // cleint name
$res0->amount = 2*100; // by default in cent
$res0->callback_url = "yourwebsite@example.com"; // callback url after execution
// and other optional params
$res0 = $res0->create_bill();
list($rhead ,$rbody, $rurl) = explode("\n\r\n", $res0);
$bplz_result = json_decode($rurl);
```

### Get bill

[](#get-bill)

Required parameter

- bill\_id

```
$res = new BillplzBill;
$res->bill_id = $bplz_result->id;
$res = $res->get_bill();
list($rhead ,$rbody, $rurl) = explode("\n\r\n", $res);
$bplz_result = json_decode($rurl);
```

### Delete bill

[](#delete-bill)

Required parameter

- bill\_id

```
$res2 = new BillplzBill;
$res2->bill_id = $bplz_result->id;
$res2 = $res2->delete_bill();
```

thats all so far nothing yet ..

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~18 days

Recently: every ~39 days

Total

10

Last Release

2447d ago

Major Versions

v1.9 → v2.02019-09-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/817e1d89d8afe7de9dcc76bc6d0d02590011ba972fa2cec2107c62b705cbee40?d=identicon)[neonexxa](/maintainers/neonexxa)

---

Top Contributors

[![neonexxa](https://avatars.githubusercontent.com/u/15252059?v=4)](https://github.com/neonexxa "neonexxa (13 commits)")

### Embed Badge

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

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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