PHPackages                             iabdullahbeker/efatora-sdk - 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. iabdullahbeker/efatora-sdk

ActiveLibrary[API Development](/categories/api)

iabdullahbeker/efatora-sdk
==========================

08PHP

Since Nov 21Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Efatora SDK
===========

[](#efatora-sdk)

This sdk helps developers to integrate easily with egypt Efatora.

---

### installation

[](#installation)

```
  composer require iabdullahbeker/efatora-sdk

```

### publish config

[](#publish-config)

```
    php artisan vendor:publish --tag=config

```

### update config file "config/efatora.php"

[](#update-config-file-configefatoraphp)

```
[
    "TAX_PAYER_ACTIVITY_CODE" => "",  // from portal
    "PRODUCT_CODING_URL" => "https://api.preprod.invoicing.eta.gov.eg/api/v1.0/codetypes/requests/codes",
    "AUTH_URL" => "https://id.preprod.eta.gov.eg/connect/token",
    "CLIENT_ID" => "92d93edc-d330-4ea8-b969-65861b531e6b", // from portal
    "CLIENT_SECRET" => "0e18b1c5-785a-4644-98c2-48eaf0ebe276", // from portal
    "DOCUMENT_SUBMISSION" => "https://api.preprod.invoicing.eta.gov.eg/api/v1/documentsubmissions",
    "ISSUER" => [ // the data of issuer of the invoice
        "address" => [
            "branchID" => "0",
            "country" => "EG",
            "governate" => "Cairo",
            "regionCity" => "Nasr City",
            "street" => "580 Clementina Key",
            "buildingNumber" => "Bldg. 0",
            "postalCode" => "68030",
            "floor" => "1",
            "room" => "123",
            "landmark" => "7660 Melody Trail",
            "additionalInformation" => "beside Townhall"
        ],
        "type" => "B",
        "id" => "376877448",
        "name" => "ايمان مجدى وشريكتها"
    ],
];
```

### Sample code to coding the products

[](#sample-code-to-coding-the-products)

```
use Iabdullahbeker\EfatoraSdk\Facades\EFatoraSdk;
use Iabdullahbeker\EfatoraSdk\Utils\EfatoraProduct;
use Iabdullahbeker\EfatoraSdk\Utils\EfatoraProducts;

$product1 = new EfatoraProduct([
            "parentCode"=>"99999999",
            "productId"=> "123456",
            "nameEn"=>"aa",
            "nameAr"=>"aa",
            "dateTime"=>date('Y-m-d\Th:i:s'),
            // "activeTo"=>"2022-08-21T00:00:00.000",
            "descriptionEn"=>"asd",
            "descriptionAr"=>"asd",
            "requestReason"=>"asd"
        ]);
        $product2 = new EfatoraProduct([
            "parentCode"=>"99999999",
            "productId"=> "5689874",
            "nameEn"=>"aas",
            "nameAr"=>"aas",
            "dateTime"=>date('Y-m-d\Th:i:s'),
            // "activeTo"=>"2022-08-21T00:00:00.000",
            "descriptionEn"=>"asdl",
            "descriptionAr"=>"asdl",
            "requestReason"=>"asdl"
        ]);
        $products = new EfatoraProducts;
        $products->add($product1->toArray());
        $products->add($product2->toArray());
        $r = EFatoraSdk::createEGS($products); // response
```

### Sample code to submit the invoice document

[](#sample-code-to-submit-the-invoice-document)

```
use Iabdullahbeker\EfatoraSdk\Utils\EfatoraReceiptItem;
use Iabdullahbeker\EfatoraSdk\Facades\EFatoraSdk;
use Iabdullahbeker\EfatoraSdk\Utils\DocumentReceiver;
use Iabdullahbeker\EfatoraSdk\Utils\EfatoraDocuments;
use Iabdullahbeker\EfatoraSdk\Utils\InvoiceLines;

        $item = new EfatoraReceiptItem([
            'id' => '123456',
            'item_type' => 'EGS',
            'description' => 'description',
            'item_code' => 'EG-376877448-RS01',
            'item_quantity' => 2,
            'item_price_each' => 300,
        ]);

        $invoiceLines = new InvoiceLines;
        $invoiceLines->add($item->toArray());

        $receiver = new DocumentReceiver([
            "country" => "EG",
            "governate" => "Cairo",
            "regionCity" => "Giza",
            "street" => "Giza",
            "buildingNumber" => "Bldg. 0",
            "postalCode" => "68030",
            "floor" => "1",
            "room" => "123",
            "landmark" => "7660 Melody Trail",
            "additionalInformation" => "Giza",
            "receiver_type" => "B",
            "receiver_id" => "123456789",
            "receiver_name" => "Abdullah Mohamed"
        ]);

        $document = new EfatoraDocuments($invoiceLines, $receiver);

        $r = EFatoraSdk::submitDocument($document->toArray()); // response
```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

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/73ad82b66b91d1cd9ada7469ad79ae9a72262e018b4c421aa45e1023d53362e3?d=identicon)[iabdullahbeker](/maintainers/iabdullahbeker)

---

Top Contributors

[![iabdullahbeker](https://avatars.githubusercontent.com/u/52360390?v=4)](https://github.com/iabdullahbeker "iabdullahbeker (3 commits)")

### Embed Badge

![Health badge](/badges/iabdullahbeker-efatora-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/iabdullahbeker-efatora-sdk/health.svg)](https://phpackages.com/packages/iabdullahbeker-efatora-sdk)
```

###  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)
