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

131PHP

Since Jul 26Pushed 1y agoCompare

[ Source](https://github.com/SeriaCAPTCHA/sdk)[ Packagist](https://packagist.org/packages/seriacaptcha/sdk)[ RSS](/packages/seriacaptcha-sdk/feed)WikiDiscussions main Synced 1w 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 4% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

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

[ipinfo/ipinfo

The official PHP library for IPinfo, the most reliable, accurate, and in-depth source of IP address data available anywhere. We process terabytes of data to produce our custom IP geolocation, company, carrier and IP type data sets. Visit our developer docs at https://ipinfo.io/developers.

2891.4M22](/packages/ipinfo-ipinfo)[alibabacloud/dysmsapi-20170525

Alibaba Cloud Dysmsapi (20170525) SDK Library for PHP

13463.8k44](/packages/alibabacloud-dysmsapi-20170525)[rlofls/drag-captcha

Drag-and-drop graphics verification, small and easy to use

501.9k](/packages/rlofls-drag-captcha)

PHPackages © 2026

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