PHPackages                             zbrettonye/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. zbrettonye/geetest

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zbrettonye/geetest
==================

Geetest Package for Laravel6-10

v1.3.1(3y ago)08.3k↑47.1%3MITPHPPHP &gt;=7.2

Since Mar 18Pushed 3y agoCompare

[ Source](https://github.com/ZBrettonYe/geetest)[ Packagist](https://packagist.org/packages/zbrettonye/geetest)[ RSS](/packages/zbrettonye-geetest/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (4)Versions (11)Used By (0)

极验验证码 v3.0 Laravel

> 采用了Germeyd的package，在此基础上添加后台获取Geetest ID 和 KEY 方法，可不从env获取。

安装
--

[](#安装)

1. 安装包文件

    ```
    $ composer require zbrettonye/geetest
    ```

配置
--

[](#配置)

> Laravel5.5+ 可跳过此步骤

1. config/app.php 注册 ServiceProvider:

    ```
    ZBrettonYe\Geetest\GeetestServiceProvider::class,
    ```
2. config/app.php 添加 Alias

    ```
    'Geetest' => ZBrettonYe\Geetest\Facades\Geetest::class,
    ```
3. 创建配置文件、视图级资源文件：

    ```
    php artisan vendor:publish --provider='ZBrettonYe\Geetest\GeetestServiceProvider'
    ```
4. `.env` 文件增加配置项 `GEETEST_ID` 和 `GEETEST_KEY` 或 通过添加 Component CaptchaVerify 来获取 ID 和 KEY

配置项
---

[](#配置项)

配置项说明选项默认值width按钮宽度单位可以是 px, %, em, rem, pt300pxlang语言，极验验证码免费版不支持多国语言zh-cn, en, zh-tw, ja, ko, thzh-cnserver-get-config从服务器获取GeetestKEYTrueFalseproduct验证码展示方式popup, floatpopupgeetest\_id极验验证码IDgeetest\_key极验验证码KEYclient\_fail\_alert客户端失败提示语请完成验证码server\_fail\_alert服务端失败提示语验证码校验失败使用
--

[](#使用)

1. 前端使用 安装扩展后，在页面需要使用极验验证码的地方增加如下代码

    ```
    {!! Geetest::render() !!}
    ```
2. 服务端校验 在服务端使用 `geetest` 验证规则进行二次验证，示例代码：

    ```
    $this->validate($request, [
    	'geetest_challenge' => 'required|geetest'
    ], [
    	'geetest' => config('geetest.server_fail_alert')
    ]);
    ```
3. 配置项：server-get-config - 服务器获取GeetestKey 通过调用 Components CaptchaVerify 的 geetestCaptchaGetConfig 方法来获取 Geetest 配置，方便实现由后台配置的KEY 和 ID

```

```

参考项目
----

[](#参考项目)

1. [Germey/LaravelGeetest](https://github.com/Germey/LaravelGeetest)
2. [GeeTeam/gt3-php-sdk](https://github.com/GeeTeam/gt3-php-sdk)

License
-------

[](#license)

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

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

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

Every ~168 days

Recently: every ~377 days

Total

10

Last Release

1152d ago

PHP version history (4 changes)v1.0PHP &gt;=5.6.0

v1.1.0PHP ^7.3

v1.2.0PHP ^7.2

v1.3.1PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/03aee165a60a1899755062bf3acccdae25ea5fb7fe39972d05b33701c9fe6a3c?d=identicon)[bretton](/maintainers/bretton)

---

Top Contributors

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

---

Tags

laravelgeetest

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5443.8k](/packages/hasinhayder-tyro-dashboard)[laravel/surveyor

Static analysis tool for Laravel applications.

86121.4k13](/packages/laravel-surveyor)[webcrafts-studio/lens-for-laravel

A local-first WCAG accessibility auditor for Laravel with axe-core, source mapping, CI workflows, and optional AI fixes.

372.5k](/packages/webcrafts-studio-lens-for-laravel)

PHPackages © 2026

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