PHPackages                             tecfinite/zatca-qr - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. tecfinite/zatca-qr

ActiveLibrary[Image &amp; Media](/categories/media)

tecfinite/zatca-qr
==================

This package takes ZATCA invoice data and generates ZATCA TLV string and Qr code image.

v1.0.1(2y ago)44.4k↓50%MITPHPPHP ^8.1

Since Jan 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/tecfinite/zatca-qr)[ Packagist](https://packagist.org/packages/tecfinite/zatca-qr)[ Docs](https://github.com/tecfinite/zatca-qr)[ RSS](/packages/tecfinite-zatca-qr/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

ZATCA Qr code generator
-----------------------

[](#zatca-qr-code-generator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7461818968362dea996fdc9ccd41ff5d17167fec4f2ef02db307143219b592f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74656366696e6974652f7a617463612d71722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tecfinite/zatca-qr)[![Total Downloads](https://camo.githubusercontent.com/86fc56cabd53f381030fcb47d3056615e9844f96a83b4801807bafbb8e6cb36d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74656366696e6974652f7a617463612d71722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tecfinite/zatca-qr)[![](https://camo.githubusercontent.com/c76a804773d69398d859a36ad0b8121d63f445dcde1184fcc2c9e0238bf96b66/68747470733a2f2f7777772e74656366696e6974652e636f6d2f6173736574732f696d672f74666e742d6c6f676f2e737667)](https://tecfinite.com)

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

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require tecfinite/zatca-qr
```

Usage
-----

[](#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
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Tecfinite](https://tecfinite.com)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~166 days

Total

3

Last Release

894d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ae29851c76cace0f3e620bec2f27d7d80c087a558fc6bccb3698fd2f15d411cf?d=identicon)[tecfinite](/maintainers/tecfinite)

---

Top Contributors

[![tecfinite](https://avatars.githubusercontent.com/u/96863139?v=4)](https://github.com/tecfinite "tecfinite (16 commits)")

---

Tags

e-invoiceqr-codetecfinitezatcaZATCAtecfinitezatca invoicezatca qr

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/tecfinite-zatca-qr/health.svg)

```
[![Health](https://phpackages.com/badges/tecfinite-zatca-qr/health.svg)](https://phpackages.com/packages/tecfinite-zatca-qr)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[contao/image

Contao image library

131.7M9](/packages/contao-image)[intervention/image-driver-vips

libvips driver for Intervention Image

4495.5k6](/packages/intervention-image-driver-vips)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
