PHPackages                             jormin/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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. jormin/geetest

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

jormin/geetest
==============

极验验证码

v1.0.2(7y ago)52651MITPHPPHP ^5.6 || ^7.0

Since May 31Pushed 7y ago2 watchersCompare

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

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

极验验证码 v3.0 扩展包

安装
--

[](#安装)

```
$ composer require jormin/geetest -vvv
```

使用
--

[](#使用)

1. 生成极验验证码对象

```
// $config 参数见下方[配置项]
$geetest = new \Jormin\Geetest\Geetest($config);
```

2. 在模板中引入 [jquery.min.js](https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js) 和 [gt.js](http://static.geetest.com/static/tools/gt.js) ,在需要使用验证码的地方增加下述代码渲染

    > gt.js 建议放在本地,防止极验验证码服务器宕机影响自己的站点

```

```

3. 在 `captchaUrl` 路由指定的操作中,获取验证码参数

```
echo $geetest->captcha();
```

4. 随表单提交时,服务端校验验证码

```
// 校验结果为 true 或 false
$geetest->validate($_POST['geetest_challenge'], $_POST['geetest_validate'], $_POST['geetest_seccode']);
```

配置项
---

[](#配置项)

配置项说明选项默认值width按钮宽度单位可以是 px, %, em, rem, pt100%lang语言，极验验证码免费版不支持多国语言zh-cn, en, zh-tw, ja, ko, thzh-cnproduct验证码展示方式popup, floatpopupgeetestID极验验证码IDgeetestKey极验验证码KEYclientFailAlert客户端失败提示语请完成验证码serverFailAlert服务端失败提示语验证码校验失败captchaUrl获取验证码初始化参数路由参考图
---

[](#参考图)

[![](https://camo.githubusercontent.com/8836754f4bf5154d4f20daa01d0651761024b4b86edff99aaa25a2ab9d3214c8/68747470733a2f2f71696e69752e626c6f672e6c65727a656e2e636f6d2f63373038363831302d326131342d313165372d613431392d6564326130343565333362342e6a7067)](https://camo.githubusercontent.com/8836754f4bf5154d4f20daa01d0651761024b4b86edff99aaa25a2ab9d3214c8/68747470733a2f2f71696e69752e626c6f672e6c65727a656e2e636f6d2f63373038363831302d326131342d313165372d613431392d6564326130343565333362342e6a7067)

参考项目
----

[](#参考项目)

1. [Jormin/LaravelGeetest](https://github.com/jormin/laravel-geetest)
2. [GeeTeam/gt3-php-sdk](https://github.com/GeeTeam/gt3-php-sdk)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

Every ~0 days

Total

3

Last Release

2900d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d6ee6d33268c4673c2c01a955a3194083ed174f719ea76bbc259f16dd8615115?d=identicon)[jormin](/maintainers/jormin)

---

Top Contributors

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

---

Tags

Jormin

### Embed Badge

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

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

###  Alternatives

[aporat/store-receipt-validator

PHP receipt validator for Apple App Store and Amazon Appstore

6503.9M9](/packages/aporat-store-receipt-validator)[robertogallea/laravel-codicefiscale

Codice fiscale validation for php/laravel

58151.6k1](/packages/robertogallea-laravel-codicefiscale)[deligoez/tckimlikno

Turkish Identification Number Verification &amp; Validation Package for Laravel

2917.4k](/packages/deligoez-tckimlikno)[speelpenning/laravel-postcode-nl

A Laravel client using the Postcode.eu REST API for Dutch address verification.

1221.1k](/packages/speelpenning-laravel-postcode-nl)

PHPackages © 2026

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