PHPackages                             seriacaptcha/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. seriacaptcha/sdk

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

seriacaptcha/sdk
================

SeriaCAPTCHA PHP SDK

12PHP

Since Jul 26Pushed 9mo agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

SeriaCAPTCHA PHP SDK
====================

[](#seriacaptcha-php-sdk)

English
-------

[](#english)

### Installation

[](#installation)

```
composer require seriacaptcha/sdk
```

### Usage Example

[](#usage-example)

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

use SeriaCAPTCHA\SeriaCAPTCHA;

$sdk = new SeriaCAPTCHA('https://hk.seriacaptcha.com');
try {
    $result = $sdk->verify(
        'your_appid',
        'user_token',
        'your_secret',
        'user_real_ip',      // optional
        'user_agent_string'  // optional
    );
    if ($result['code'] === 1) {
        // Verification passed
    } else {
        // Verification failed
    }
} catch (Exception $e) {
    // Network or API error
    echo $e->getMessage();
}
```

### Endpoint Validation

[](#endpoint-validation)

- Only root domains ending with `.seriacaptcha.com` are allowed as endpoint.
- You only need to pass the root domain, SDK will automatically append `/verify.php`.
- If the endpoint is invalid, the constructor will throw an exception.

---

正體中文
----

[](#正體中文)

### 安裝

[](#安裝)

```
composer require seriacaptcha/sdk
```

### 使用範例

[](#使用範例)

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

use SeriaCAPTCHA\SeriaCAPTCHA;

$sdk = new SeriaCAPTCHA('https://hk.seriacaptcha.com');
try {
    $result = $sdk->verify(
        '你的appid',
        '用戶token',
        '你的secret',
        '用戶真實IP',      // 可選
        '用戶UA字串'       // 可選
    );
    if ($result['code'] === 1) {
        // 驗證通過
    } else {
        // 驗證失敗
    }
} catch (Exception $e) {
    // 網路或API異常
    echo $e->getMessage();
}
```

### endpoint 驗證機制

[](#endpoint-驗證機制)

- 只允許以 `.seriacaptcha.com` 結尾的根網域作為 endpoint。
- endpoint 只需傳入根網域，SDK 會自動拼接 `/verify.php`。
- 若 endpoint 非法，建構子會丟出例外。

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance40

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity14

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/fdb3f732d43b71e9f356ee07fd18deb8b6ac898c621cdc9146734cf94c598299?d=identicon)[Keary](/maintainers/Keary)

---

Top Contributors

[![ZhanxKer](https://avatars.githubusercontent.com/u/155804522?v=4)](https://github.com/ZhanxKer "ZhanxKer (1 commits)")

### Embed Badge

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

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

###  Alternatives

[stingbo/easyexchange

easy use digital currency exchange sdk

871.3k](/packages/stingbo-easyexchange)

PHPackages © 2026

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