tecfinite / zatca-qr
This package takes ZATCA invoice data and generates ZATCA TLV string and Qr code image.
Installs: 2 549
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^8.1
- endroid/qr-code: ^4.7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^v3.13.2
- pestphp/pest: ^v1.22.3
- spatie/ray: ^1.36.0
This package is auto-updated.
Last update: 2024-11-05 14:09:57 UTC
README
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.