PHPackages                             mphpmaster/laravel-zatca - 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. mphpmaster/laravel-zatca

ActiveLibrary

mphpmaster/laravel-zatca
========================

Laravel helper to generate the QRcode for ZATCA E-Invoicing system

1.0.2(3y ago)32.0k1MITPHPPHP &gt;=7.4

Since Nov 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mPhpMaster/laravel-zatca)[ Packagist](https://packagist.org/packages/mphpmaster/laravel-zatca)[ Docs](https://github.com/mphpmaster/laravel-zatca)[ RSS](/packages/mphpmaster-laravel-zatca/feed)WikiDiscussions main Synced today

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

Laravel-ZATCA
=============

[](#laravel-zatca)

*Unofficial package to implement ZATCA QRcode for E-Invoicing.*

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4
- An mbstring extension

Dependencies
------------

[](#dependencies)

- [chillerlan/php-qrcode](https://github.com/chillerlan/php-qrcode)

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

[](#installation)

Via composer:

```
$ composer require mphpmaster/laravel-zatca
```

Usage
-----

[](#usage)

### Generate Base64

[](#generate-base64)

```
$value = \MPhpMaster\ZATCA\TagBag::make()
    ->setCompany('Company name')
    ->setVatId('311111111111113')
    ->setInvoiceDate('2023-11-24T03:48:00Z')
    ->setInvoiceTotalAmount('100')
    ->setVatAmount('15')
    ->toBase64();

// > Output
// AQxDb21wYW55IG5hbWUCDzMxMTExMTExMTExMTExMwMUMjAyMy0xMS0yNFQwMzo0ODowMFoEAzEwMAUCMTU=
```

### Generate Plain

[](#generate-plain)

```
$value = \MPhpMaster\ZATCA\TagBag::make()
    ->setCompany('Company name')
    ->setVatId('311111111111113')
    ->setInvoiceDate('2023-11-24T03:48:00Z')
    ->setInvoiceTotalAmount('100')
    ->setVatAmount('15')
    ->toTLV();
```

### Get The QRCode Image

[](#get-the-qrcode-image)

```
$value = \MPhpMaster\ZATCA\TagBag::make()
    ->setCompany('Company name')
    ->setVatId('311111111111113')
    ->setInvoiceDate('2023-11-24T03:48:00Z')
    ->setInvoiceTotalAmount('100')
    ->setVatAmount('15')
    ->toImage();

//
```

Testing
-------

[](#testing)

```
vendor/bin/phpunit
```

Copyright and license
---------------------

[](#copyright-and-license)

Copyright © 2023 hlaCk ()

Licensed under the **MIT License** () license.

---

Stand with Palestine 🇵🇸 *\#FreePalestine*
-----------------------------------------

[](#stand-with-palestine--freepalestine)

###  Health Score

29

—

LowBetter than 63% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.1% 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 ~205 days

Total

3

Last Release

1167d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/653f207f1b16ec4055eea8fd8699991febd6a1a0201011ab3d1a6ece3bbfd511?d=identicon)[mPhpMaster](/maintainers/mPhpMaster)

---

Top Contributors

[![m-alsafadi](https://avatars.githubusercontent.com/u/89378271?v=4)](https://github.com/m-alsafadi "m-alsafadi (4 commits)")[![mPhpMaster](https://avatars.githubusercontent.com/u/59211285?v=4)](https://github.com/mPhpMaster "mPhpMaster (2 commits)")[![amrography](https://avatars.githubusercontent.com/u/9614340?v=4)](https://github.com/amrography "amrography (1 commits)")

---

Tags

qr codetagvalueZATCAe-invocingtlvlegnth

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mphpmaster-laravel-zatca/health.svg)

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

###  Alternatives

[salla/zatca

A helper to generate the QR code and signed it for ZATCA e-invoicing

159408.2k2](/packages/salla-zatca)[chillerlan/php-qrcode

A QR Code generator and reader with a user-friendly API. PHP 8.2+

2.3k26.8M172](/packages/chillerlan-php-qrcode)[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k12.9M32](/packages/milon-barcode)[pragmarx/google2fa-qrcode

QR Code package for Google2FA

12022.8M32](/packages/pragmarx-google2fa-qrcode)[cache/tag-interop

Framework interoperable interfaces for tags

10524.6M11](/packages/cache-tag-interop)[saleh7/php-zatca-xml

An unofficial PHP library for generating ZATCA Fatoora e-invoices. This library facilitates the creation of compliant e-invoices, QR Codes, and certificates, as well as the submission of e-invoices to ZATCA's servers. It provides developers with an easy-to-use, customizable, and robust toolkit to integrate and automate ZATCA e-invoicing processes in PHP applications.

5011.5k](/packages/saleh7-php-zatca-xml)

PHPackages © 2026

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