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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mphpmaster/laravel-zatca

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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 1mo ago

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 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

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

1219d 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

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

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

2.4k28.9M208](/packages/chillerlan-php-qrcode)[marcocesarato/php-conventional-changelog

Generate changelogs and release notes from a project's commit messages and metadata and automate versioning with semver.org and conventionalcommits.org

2511.3M109](/packages/marcocesarato-php-conventional-changelog)[sonata-project/classification-bundle

Symfony SonataClassificationBundle

913.2M20](/packages/sonata-project-classification-bundle)[silverstripe/tagfield

Tag field for SilverStripe

571.2M45](/packages/silverstripe-tagfield)[zxing/qr-reader

PHP qr code reader library

7542.7k1](/packages/zxing-qr-reader)

PHPackages © 2026

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