PHPackages                             onliner/geetest-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. [Security](/categories/security)
4. /
5. onliner/geetest-php-sdk

ActiveLibrary[Security](/categories/security)

onliner/geetest-php-sdk
=======================

PHP client for GeeTest captcha.

v1.0.0(5y ago)62671MITPHPPHP ^7.2CI failing

Since Jun 15Pushed 5y ago2 watchersCompare

[ Source](https://github.com/onliner/geetest-php-sdk)[ Packagist](https://packagist.org/packages/onliner/geetest-php-sdk)[ RSS](/packages/onliner-geetest-php-sdk/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

GeeTest PHP SDK
---------------

[](#geetest-php-sdk)

This is a PHP library that wraps up the server-side verification step required to process responses from the [GeeTest](https://www.geetest.com) service.

[![Version](https://camo.githubusercontent.com/9bcc492026f77b9d65d86cfd839c2a3a88ebd0caf84672bf7e35284c16ee7843/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6e6c696e65722f676565746573742d7068702d73646b2e737667)](https://packagist.org/packages/onliner/geetest-php-sdk)[![Total Downloads](https://camo.githubusercontent.com/f0421d722b3702dcbe8cdef6fcddcb0a321ea6da6e80c15043cd830cb01045d4/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6c696e65722f676565746573742d7068702d73646b2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/onliner/geetest-php-sdk)[![Php](https://camo.githubusercontent.com/3d0bd9c899ce8b17791ae4850b1c505b2207d5af214ea6c67d2cf9d528087570/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372e322b2d627269676874677265656e2e737667)](https://www.php.net/)[![License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![Build Status](https://github.com/onliner/geetest-php-sdk/workflows/test/badge.svg)](https://github.com/onliner/geetest-php-sdk/actions?workflow=test)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require onliner/geetest-php-sdk:^1.0

```

or add this code line to the `require` section of your `composer.json` file:

```
"onliner/geetest-php-sdk": "^1.0"

```

Usage
-----

[](#usage)

### Step 1. Register captcha request.

[](#step-1-register-captcha-request)

```
const ID = '58f984fb3d1f7f4732a74b3cda273eed';
const KEY = '58f984fb3d1f7f4732a74b3cda273eed';

$geetest = new GeeTest(ID, KEY);
$register = $geetest->register()->toArray();
```

### Step 2. Normal mode of captcha validation.

[](#step-2-normal-mode-of-captcha-validation)

```
$geetest = new GeeTest(ID, KEY);
$geetest->validate($challenge, $validate, $seccode, true);
```

### Step 2. Fallback mode of captcha validation.

[](#step-2-fallback-mode-of-captcha-validation)

```
$geetest = new GeeTest(ID, KEY);
$geetest->validate($challenge, $validate, $seccode, false);
```

License
-------

[](#license)

Released under the [MIT license](LICENSE).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

2158d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4974062?v=4)[Alexander Mohorev](/maintainers/mohorev)[@mohorev](https://github.com/mohorev)

![](https://www.gravatar.com/avatar/39db52cd6f340f99bf33f18421f52be4d3aee9ed55a81f7e4892baf92012a786?d=identicon)[onliner](/maintainers/onliner)

---

Top Contributors

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

---

Tags

captchageetestphpphpcaptchageetest

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/onliner-geetest-php-sdk/health.svg)

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

###  Alternatives

[fabianwennink/iconcaptcha

IconCaptcha is a self-hosted, customizable, easy-to-implement and user-friendly captcha.

17740.5k1](/packages/fabianwennink-iconcaptcha)[lorddashme/php-simple-captcha

A simple captcha package that fit to any type of web application built on php.

102.9k](/packages/lorddashme-php-simple-captcha)[mohammadv184/arcaptcha

PHP library for ArCaptcha

102.3k1](/packages/mohammadv184-arcaptcha)

PHPackages © 2026

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