PHPackages                             asamirsherif/zatca-integration - 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. [API Development](/categories/api)
4. /
5. asamirsherif/zatca-integration

ActiveLibrary[API Development](/categories/api)

asamirsherif/zatca-integration
==============================

Laravel package to Generate the QR code and Integrate with Tax APIs for Zatca E-invoicing

517[1 issues](https://github.com/asamirsherif/zatca-integration/issues)PHP

Since Sep 17Pushed 3y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel ZATCA Integration
=========================

[](#laravel-zatca-integration)

Introduction
------------

[](#introduction)

### Laravel package to Integrate with ZATCA API servers and Generate the QR code signed and Validated for ZATCA E-invoicing

[](#laravel-package-to-integrate-with-zatca-api-servers-and-generate-the-qr-code-signed-and-validated-for-zatca-e-invoicing)

### **Currently In progress (only phase one done!)**

[](#currently-in-progress-only-phase-one-done)

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

[](#installation)

To get the latest version of zatca-integration on your project, you can require it from "composer":

```
$ composer require asamirsherif/zatca-integration

```

### Laravel

[](#laravel)

Register the provider directly in your app configuration file config/app.php `config/app.php`:

Laravel &gt;= 5.5 provides package auto-discovery, you won't need to add it manaully

providers and facades will be add as

```
'providers' => [
    Asamirsherif\Zatca\ZatcaServiceProvider::class,
]

```

```
'aliases' => [
  'Zatca' => Asamirsherif\Zatca\Facades\Zatca::class,
]

```

Usage
-----

[](#usage)

### Generate Base64

[](#generate-base64)

```
`use Asamirsherif\Zatca\Facades\Zatca;$base64 = Zatca::sellerName('Seller Name/اسم البائع')
            ->vatRegistrationNumber("123456789123456")
            ->timestamp("2022-07-04T13:00:09Z")
            ->totalWithVat('100.00')
            ->vatTotal('15.00')
            ->toBase64();

```

### Render QR of TLV base64 encrypted

[](#render-qr-of-tlv-base64-encrypted)

```
$qrCode = zatca()
            ->sellerName('اسم البائع/Seller Name')
            ->vatRegistrationNumber("123456789123456")
            ->timestamp("2022-07-01T14:00:09Z")
            ->totalWithVat('100.00')
            ->vatTotal('15.00')
            ->toQrCode(
              qrCodeOptions()
                ->format("svg")
                ->color(255,0,0,1)
                ->size(300)
            );

```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/530f71610c08a97326b2757021e7e5493d2e4d203a8a1f2cb9a6f79562596d7d?d=identicon)[asamirsherif](/maintainers/asamirsherif)

---

Top Contributors

[![asamirsherif](https://avatars.githubusercontent.com/u/54451098?v=4)](https://github.com/asamirsherif "asamirsherif (5 commits)")

### Embed Badge

![Health badge](/badges/asamirsherif-zatca-integration/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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