Download the PHP package klsandbox/billplz without Composer
On this page you can find all versions of the php package klsandbox/billplz. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download klsandbox/billplz
More information about klsandbox/billplz
Files in klsandbox/billplz
Package billplz
Short Description Just another Billplz package for Laravel
License MIT
Informations about the package billplz
BillPlz Client For Laravel
This client is a simple Billplz client that can be used with Laravel 5. You may check their api for full documentation.
How To Use
After installing via composer, simply use it by creating a new object and put the Api key as it argument.
$billplz = new \Klsandbox\BillPlz\BillPlz("Token_here");
To use the Sandbox Mode api, just pass false
as a second argument.
$billplz = new \Klsandbox\BillPlz\BillPlz("Token_here" , false);
Create a new collection.
$billplz = new \Klsandbox\BillPlz\BillPlz("Token_here");
$billplz->setCollection(['title'=>'Ahmad Shop']);
Create a new bill.
$billplz = new \Klsandbox\BillPlz\BillPlz("Token_here");
$billplz->setBill($data);
List of available method
Collection
setCollection(array $data)
setOpenCollection(array $data)
deactivateCollection($collection_id)
activateCollection($collection_id)
Bill
setBill(array $data)
getBill($bill_id)
deleteBill($bill_id)
Bank Account
verifyAccount($bank_account)
Run Test File
To run the test, create a new secret-env-plain
file. In this file, put this two line,
replace the PUT_TOKEN_HERE and PUT_BANK_ACCOUNT_HERE text with the token and bank account you filled on the staging server. The test will run using the staging server api.
Security Vulnerabilities
If you discover a security vulnerability within this BillPlz client, please send an e-mail to Ibrahim Abdul Rahim at [email protected].
License
This client are open-sourced software licensed under the MIT license.