Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 642 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 642 Bytes

A PHP package that implements the e-invoice QR code signature requirements as designed by the Zakat authority of Saudi Arabia.

How to install?

composer require muktar-sayedsaleh/zakat-tlv-generator

How to use?

use MuktarSayedSaleh\ZakatTlv\Encoder;

$encoder = new Encoder();
$qr_signature = $encoder->encode(
    "Axis Inspection - Sparehub",
    "1234567890",
    null,
    10000,
    150
);

// Use the signature to render your QR image!

Notes:

  1. If you pass the third parameter as null, the package will assume that we're passing the current time stamp. Otherwise you may pass your own timestamp as a string.