PHPackages                             yfcmf/geetest - 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. yfcmf/geetest

ActiveLibrary

yfcmf/geetest
=============

Geetest For ThinkPHP5.x

1.0.0(9y ago)96106Apache-2.0PHP

Since Dec 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/rainfer520/geetest)[ Packagist](https://packagist.org/packages/yfcmf/geetest)[ RSS](/packages/yfcmf-geetest/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

极验geetest
---------

[](#极验geetest)

thinkphp5.x可用的极验扩展

安装
--

[](#安装)

> composer require yfcmf/geetest

\##使用 ###参数配置 在配置文件config里配置geetest配置，需要到官网申请

```
//举例
'geetest'=> [
       'captcha_id' =>'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
       'private_key'=>'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
    ],

```

\###模板里的调用

```

var handler = function (captchaObj) {
    captchaObj.appendTo("#captcha");
    captchaObj.onSuccess(function () {
        //验证成功执行
     });
    captchaObj.onReady(function () {
        //加载完毕执行
    });
};
$.ajax({
   url: "{:geetest_url()}?t=" + (new Date()).getTime(),
   type: "get",
   dataType: "json",
   success: function (data) {
   initGeetest({
        gt: data.gt,
        challenge: data.challenge,
        product: "float",
        offline: !data.success
      }, handler);
   }
});

```

### 控制器里验证

[](#控制器里验证)

```
//需要传入$_POST请求的数据
if(!geetest_check($post)){
 //验证失败
};

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

3424d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8f63e769fc4466d53ac1f2924973d9f457916bcb8e7c00a22d338e85e9dfcda7?d=identicon)[yfcmf](/maintainers/yfcmf)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/yfcmf-geetest/health.svg)

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

PHPackages © 2026

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