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

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

pichuchen/einvoice
==================

Taiwan E-invoice PHP SDK

1.0.10(11y ago)244310Apache-2.0PHPPHP &gt;=5.3.3CI failing

Since Mar 21Pushed 6mo ago2 watchersCompare

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

READMEChangelogDependencies (1)Versions (13)Used By (0)

einvoice
========

[](#einvoice)

PHP SDK of Taiwan E-Invoice API

基本需求
----

[](#基本需求)

### 電子發票API

[](#電子發票api)

使用前請先向「財政部電子發票整合服務平台」申請「電子發票API」() ，目前無法以個人名義申請，公司名義需要先通過 ISO 27001 認證才能進行申請。

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

功能介紹
----

[](#功能介紹)

目前支援的功能有

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

其他相關連結
------

[](#其他相關連結)

- [tihtw/taiwan-invoice](https://github.com/tihtw/taiwan-invoice) Golang 版的電子發票 SDK

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance45

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~1 days

Total

11

Last Release

4089d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9252bfbfacd9e464f08197186bf9e064b920aa15b2649ff54b13abe6fcd8c75e?d=identicon)[PichuChen](/maintainers/PichuChen)

---

Top Contributors

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

---

Tags

TaiwaneinvoiceE-Invoiceg0v.tw

### Embed Badge

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

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.9k496.1k32](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3751.2M45](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

744284.3k34](/packages/civicrm-civicrm-core)[roundcube/roundcubemail

The Roundcube Webmail suite

7.0k1.4k3](/packages/roundcube-roundcubemail)[spatie/laravel-export

Create a static site bundle from a Laravel app

670139.5k6](/packages/spatie-laravel-export)[nfse-nacional/nfse-php

This is my package nfse

1493.1k](/packages/nfse-nacional-nfse-php)

PHPackages © 2026

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