PHPackages                             donshun/einvoice - 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. donshun/einvoice

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

donshun/einvoice
================

Taiwan E-invoice PHP SDK

1.0.10(11y ago)04Apache-2.0PHPPHP &gt;=5.3.3

Since Mar 21Pushed 5y agoCompare

[ Source](https://github.com/donshun/einvoice)[ Packagist](https://packagist.org/packages/donshun/einvoice)[ RSS](/packages/donshun-einvoice/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (12)Used By (0)

einvoice
========

[](#einvoice)

PHP SDK of Taiwan E-Invoice API

基本需求
----

[](#基本需求)

### 電子發票API

[](#電子發票api)

使用前請先向「財政部電子發票整合服務平台」申請「電子發票API」()

### Composer

[](#composer)

此Library 使用Comporser進行安裝，在專案目錄下的`composer.json`新增

```
{
    "require":{
        "pichuchen/einvoice": "1.0.0"
    }
}

```

接下來執行

```
curl -sS https://getcomposer.org/installer | php
php composer.phar install

```

進行安裝

設定
--

[](#設定)

使用時請先

```
require_once 'vendor/autoload.php';

```

接著用

```
$client = \PichuChen\einvoice\EinvoiceClient::factory([
    'uuid' => 'CLIENT_UUID',
    'appID' => 'API_KEY
]);

```

生成`EinvoiceClient`實體。 其中`CLIENT_UUID`是電子發票整合服務平台為了避免特定使用者濫用所要求之ＩＤ， 請試著給不同的使用者不同的UUID。 `API_KEY`的部分是和電子發票整合平台提出聲請後得到的KEY。

功能介紹
----

[](#功能介紹)

目前支援的功能有

- 查詢開獎號碼
- 查詢特定發票表頭資訊
- 查詢特定發票細節資訊
- 查詢捐贈代號
- 查詢特定載具上的發票資訊
- 查詢特定載具上發票資訊細節

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 91.3% 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 ~1 days

Total

11

Last Release

4067d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8f71b36192065691e2b93f7e54111e7b9fe74376cf8ad49848bbeb39ff30518c?d=identicon)[donshun](/maintainers/donshun)

---

Top Contributors

[![PichuChen](https://avatars.githubusercontent.com/u/600238?v=4)](https://github.com/PichuChen "PichuChen (21 commits)")[![donshun](https://avatars.githubusercontent.com/u/37993266?v=4)](https://github.com/donshun "donshun (2 commits)")

---

Tags

TaiwaneinvoiceE-Invoiceg0v.tw

### Embed Badge

![Health badge](/badges/donshun-einvoice/health.svg)

```
[![Health](https://phpackages.com/badges/donshun-einvoice/health.svg)](https://phpackages.com/packages/donshun-einvoice)
```

###  Alternatives

[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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