Skip to content

The ZATCA QR Code Generator is a PHP-based solution designed to generate QR codes compliant with the Zakat, Tax and Customs Authority (ZATCA) e-invoicing regulations in Saudi Arabia. This tool simplifies the process of creating and embedding QR codes in invoices.

License

Notifications You must be signed in to change notification settings

tecfinite/zatca-qr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZATCA Qr code generator

Latest Version on Packagist Total Downloads

E-invoice QR code generator, is a simple library to generate QR code image for e-invoice in KSA.

Installation

You can install the package via composer:

composer require tecfinite/zatca-qr

Usage

use Tecfinite\ZatcaQr\Tag\InvoiceTotalTag as ZatcaInvoiceTotalTag;
use Tecfinite\ZatcaQr\Tag\SellerTag as ZatcaSellerTag;
use Tecfinite\ZatcaQr\Tag\TimestampTag as ZatcaTimestampTag;
use Tecfinite\ZatcaQr\Tag\VatRegistrationNumberTag as ZatcaVatRegistrationNumberTag;
use Tecfinite\ZatcaQr\Tag\VatTotalTag as ZatcaVatTotalTag;
use Tecfinite\ZatcaQr\ZatcaQr;
$qr = new Tecfinite\ZatcaQr();
$qr = new ZatcaQr(
            new ZatcaSellerTag($this->sellerName),
            new ZatcaVatRegistrationNumberTag($this->sellerTaxId),
            new ZatcaTimestampTag($this->invoice->created_at),
            new ZatcaInvoiceTotalTag($this->invoice->total_fee),
            new ZatcaVatTotalTag($this->invoice->vat_fee)
          );

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

The ZATCA QR Code Generator is a PHP-based solution designed to generate QR codes compliant with the Zakat, Tax and Customs Authority (ZATCA) e-invoicing regulations in Saudi Arabia. This tool simplifies the process of creating and embedding QR codes in invoices.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages