PHPackages                             kurorido/pilluu-php-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. kurorido/pilluu-php-sdk

ActiveLibrary

kurorido/pilluu-php-sdk
=======================

紅陽皮路系統 PHP SDK

1.0.4(3y ago)086↓50%MITPHPPHP ^7.4|^8.0

Since Mar 16Pushed 3y ago1 watchersCompare

[ Source](https://github.com/kurorido/pilluu-php-sdk)[ Packagist](https://packagist.org/packages/kurorido/pilluu-php-sdk)[ RSS](/packages/kurorido-pilluu-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

紅陽 BNPL 皮路 PHP SDK
------------------

[](#紅陽-bnpl-皮路-php-sdk)

### Install

[](#install)

```
composer require kurorido/pilluu-php-sdk

```

### 傳送交易 Cashier

[](#傳送交易-cashier)

```
$testing = true; // 設定環境
$cashier = new PilluCashier('商戶編號', 'Public Key' , 'SHA2 Key', $testing);

$order = (new PilluOrder)
    ->setTradeId('商戶訂單號')
    ->setAmount('888')
    ->setMemo('測試商品');

$autoSubmit = false; // 是否使用 JavaScript 自動送出?
$cashier->doCheckout($order, $autoSubmit);

```

### 接收付款結果 Callback

[](#接收付款結果-callback)

目前只檢查 content 與 merchantid 是否符合，如有需要請自行繼承覆寫 check

```
$callback = new PilluCallback('商戶編號', 'Public Key' , 'SHA2 Key');
$response = $callback->check($payload);

if ($response->body->result === 'success') {
    // 付款成功，官方建議再發 Double Check
}

```

### 訂單查詢 Double Check

[](#訂單查詢-double-check)

訂單查詢的時間點必須為交易時間的 120 秒以內，否則會被認定為無效參數

```
$testing = true; // 設定環境
$checker = new PilluCheckOrder('商戶編號', 'Public Key' , 'SHA2 Key', $testing);

$response = $checker->doCheck('交易發起時間', '交易金額', '商戶訂單號 tradeid');

if ($response->result === '111') {
    // 付款成功
}

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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 ~0 days

Total

4

Last Release

1150d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e9293f9b526a4f3dbbcb20ba1ce20602e099f05a81b44bd0dad2b0f388a1f4b?d=identicon)[kurorido](/maintainers/kurorido)

---

Top Contributors

[![kurorido](https://avatars.githubusercontent.com/u/300858?v=4)](https://github.com/kurorido "kurorido (8 commits)")

---

Tags

bnplpilluu

### Embed Badge

![Health badge](/badges/kurorido-pilluu-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/kurorido-pilluu-php-sdk/health.svg)](https://phpackages.com/packages/kurorido-pilluu-php-sdk)
```

PHPackages © 2026

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