PHPackages                             supplycart/e-invoice - 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. supplycart/e-invoice

ActiveLibrary

supplycart/e-invoice
====================

MyInvois Wrapper For PHP

1.0.2(1y ago)18.0k↓22.6%[1 issues](https://github.com/supplycart/e-invoice/issues)[1 PRs](https://github.com/supplycart/e-invoice/pulls)MITPHPPHP ^8.1

Since Jul 11Pushed 1y agoCompare

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

READMEChangelogDependencies (6)Versions (6)Used By (0)

To install, run:

```
$ composer require supplycart/e-invoice
```

Usage with Laravel (tested on Laravel 11)
-----------------------------------------

[](#usage-with-laravel-tested-on-laravel-11)

#### Login as Taxpayer System

[](#login-as-taxpayer-system)

```
use Supplycart\EInvoice\EInvoiceClient;
use Illuminate\Support\Facades\Cache;

$isProd = false;
$clientId = '5b75ce93-a6d1-4e02-943f-a24ffa1b46ec';
$clientSecret = 'e4d2fcc8-90a8-40cd-99be-08f3401fbb93';

$client = new EInvoiceClient(
    clientId: $clientId,
    clientSecret: $clientSecret,
    isProd: isProd
);

$client->login();

$accessToken = $client->getAccessToken();

//Alternative to store in cache and get it later
Cache::remember('some-key', $accessToken, 3600) // expires in 3600s (1hour)

// To reuse the cached accessToken
$client->setAccessToken(Cache::get('some-key'));
```

#### Login as Intermediary System

[](#login-as-intermediary-system)

```
// same as login, just need to set $onBehalfOf which is the entity's TIN
$client->setOnBehalfOf($onBehalfOf);
```

#### Validate Taxpayer's TIN

[](#validate-taxpayers-tin)

```
$tin = 'C1234567890';
$idType = 'BRN';
$idValue = '1234567890';

$response = $client->validateTaxPayerTin(
    tin: $tin,
    idType: $idType,
    idValue: $idValue
);
```

#### Get Document Details

[](#get-document-details)

```
$documentUuid = '5a282618-8ad0-4ad6-bc1d-7f2a326562cf';

$response = $client->getDocumentDetail($documentUuid);
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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 ~51 days

Total

3

Last Release

575d ago

### Community

Maintainers

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

---

Top Contributors

[![iqrammm](https://avatars.githubusercontent.com/u/48657762?v=4)](https://github.com/iqrammm "iqrammm (11 commits)")[![Ima-Acikima](https://avatars.githubusercontent.com/u/63829559?v=4)](https://github.com/Ima-Acikima "Ima-Acikima (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/supplycart-e-invoice/health.svg)

```
[![Health](https://phpackages.com/badges/supplycart-e-invoice/health.svg)](https://phpackages.com/packages/supplycart-e-invoice)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

768.0M9](/packages/chargebee-chargebee-php)[vin-sw/shopware-sdk

A PHP SDK for Shopware 6 Platform

122469.3k6](/packages/vin-sw-shopware-sdk)

PHPackages © 2026

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