Download the PHP package izzudin96/billplz-laravel without Composer

On this page you can find all versions of the php package izzudin96/billplz-laravel. 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 billplz-laravel

izzudin96/billplz-laravel

A lightweight Billplz package for Laravel 11/12/13.

It returns typed DTOs for bills, redirects, and webhooks so developers can use property access and IDE autocomplete instead of fragile array keys.

It provides a small Billplz client for common payment flow tasks:

Features

When to use which method

Installation

Configuration

Publish config:

Or set env variables directly:

Config supports both x-signature and x_signature keys for compatibility.

Optional config/services.php style usage is also supported:

HTTP behavior defaults

This applies to bill create/get requests.

Usage

How BillplzClient is resolved in Laravel

BillplzClient::class is only a class name string. To call client methods, you need an instance resolved by Laravel's service container.

Preferred patterns:

  1. Method injection (clean and explicit)

  2. Constructor injection (good when used in multiple methods)

  3. Facade usage (shortest call style)

  4. app helper (works, but usually less preferred than DI)

Why DI/facade is friendlier:

1) Create a bill

2) Get bill status

3) Strict signature verification

Use this when you want invalid signature payloads to fail immediately.

4) Best-effort redirect (recommended for UX callback)

Use this when callback/redirect is only for showing payment result to user. Process fulfillment from webhook instead.

5) Best-effort webhook parser

Use this when you prefer null checks over exception handling.

End-to-end controller example

Suggested routes

Use cases

Notes

Working with DTOs

Serializing to array/JSON

All DTOs implement JsonSerializable and expose a toArray() method:

Unknown fields returned by Billplz are preserved in $bill->extra and included in both toArray() and json_encode() output. Known keys always take precedence over extra.

Converting to BillResponse

Redirect and webhook payloads can be normalized into a BillResponse for consistent storage:

WebhookPayload::toBillResponse() casts amount from string to int automatically. Fields not present in the source payload (e.g., description, redirect_url) will be null.

Merging bills

Combine a stored bill with an incoming webhook update — non-null incoming values override existing values:

Eloquent cast

Store bill data in a JSON column without writing a custom cast:

The cast also accepts plain arrays on assignment ($order->billplz_data = ['id' => '...', ...]) and converts them into a BillResponse.

Testing

The package includes PHPUnit + Orchestra Testbench tests.

Run tests locally:

Current test coverage includes:

GitHub Actions CI

CI workflow is available at .github/workflows/tests.yml and runs on:

Matrix:

Pipeline steps:

Automated versioning and tagging

This repository now uses Conventional Commits + semantic-release on main.

When commits are merged to main, GitHub Actions will:

Commit types and version bumps

Examples:

Best practice workflow

One-time repository setup

No extra secret is needed for basic releases. The workflow uses GitHub's built-in GITHUB_TOKEN.

If this is the first release, create your first baseline tag so the next bump has a reference point:

Workflows added:


All versions of billplz-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.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 izzudin96/billplz-laravel contains the following files

Loading the files please wait ...