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

121PHP

Since Jul 26Pushed 11mo agoCompare

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

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 4% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

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://avatars.githubusercontent.com/u/5162373?v=4)[Keary](/maintainers/Keary)[@Keary](https://github.com/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

[link1st/laravel-easemob

环信即时通讯laravel包开发，用于环信用户、群、聊天室等功能

446.6k](/packages/link1st-laravel-easemob)[owenmelbz/https-enforcement

Laravel 5.x middleware to enforce https redirection for your app.

252.6k](/packages/owenmelbz-https-enforcement)

PHPackages © 2026

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