Download the PHP package xanderid/qris-dynamicify without Composer

On this page you can find all versions of the php package xanderid/qris-dynamicify. 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 qris-dynamicify

qris-dynamicify

qris-dynamicify is a powerful and lightweight composer library for effortlessly transforming static QRIS (Quick Response Code Indonesian Standard) into dynamic QRIS. This tool is designed for developers and businesses in Indonesia who need to generate transaction-specific QR codes with dynamic amounts, streamlining the payment process for modern applications.

The project solves the problem of static, non-specific QRIS codes by allowing you to programmatically inject transaction details like price and taxes, making the payment experience seamless for both merchants and customers.

Key Features

Installation

You can install qris-dynamicify via composer.

Live Demo

You can try QRIS Dynamicify directly in your browser:

https://xanderid.github.io/qris-dynamicify/

Usage Instructions

Here’s how to get started with qris-dynamicify.

Basic Example: From a Static QRIS String

Example: From a QRIS Image File

API Documentation

The main entry points are fromString and fromFile, which return a QrisDynamicify instance.


fromString(string $staticQris): QrisDynamicify


fromFile(string $filePath): QrisDynamicify


QrisDynamicify Methods

setPrice(int $price): self


setTax(int|string $tax): self


getMetadata(): QrisMetadata

QrisMetadata Getters

Method Description
getMerchant(): string Returns the merchant name.
getCompany(): string Returns the company or organization name.
getRegion(): string Returns the region or province.
getCountry(): string Returns the country code (ISO).
getPostalCode(): string Returns the postal/ZIP code.
getMerchantPan(): string Returns the merchant PAN (Primary Account Number).
getPrice(): ?string Returns the transaction price, if available.
getTax(): ?string Returns the tax amount, if available.
toArray(): array<string, ?string> Returns all metadata as an associative array.

writeToFile(string $filePath, ?QROptions $options = null): string


__toString(): string

Contribution Guide

We welcome contributions! Please follow these steps:

  1. Fork the repository: Click the 'Fork' button at the top right of this page.
  2. Clone your fork:

  3. Create a new branch:

  4. Make your changes: Implement your feature or fix the bug.
  5. Commit your changes:

  6. Push to your branch:

  7. Create a Pull Request: Open a pull request from your fork to the main repository.

Roadmap

License

This project is licensed under the MIT License - see the LICENSE file for details.

Credits

This project relies on the following open-source libraries:

FAQ

Q: What is the difference between static and dynamic QRIS? A: A static QRIS contains only the merchant's information. The customer has to manually input the transaction amount. A dynamic QRIS is generated for a single transaction and includes the amount, making the payment process faster and less error-prone.

Q: Can I use this for any QRIS code from any provider? A: Yes, this library should work with any valid QRIS code that complies with the Bank Indonesia standard.

Why this project?

In the rapidly growing digital economy of Indonesia, QRIS has become a ubiquitous payment method. However, many smaller businesses still rely on static QRIS displays, which require manual entry of payment amounts. This can be slow and prone to errors. qris-dynamicify was created to bridge this gap, providing developers with a simple, powerful tool to integrate dynamic QRIS generation into their applications. Whether you're building a POS system, an e-commerce platform, or a donation portal, this library helps you create a smoother, more professional payment experience.


All versions of qris-dynamicify with dependencies

PHP Build Version
Package Version
Requires chillerlan/php-qrcode Version ^5.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 xanderid/qris-dynamicify contains the following files

Loading the files please wait ...