PHPackages                             codemonkeyluffy/laravel-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. codemonkeyluffy/laravel-geetest

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

codemonkeyluffy/laravel-geetest
===============================

极验验证码v3.0 Laravel 5+ 扩展包

v1.0.3(6y ago)025MITPHPPHP ~5.6|~7.0CI failing

Since Oct 18Pushed 6y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (5)Used By (0)

极验验证码v3.0 Laravel 5+ 扩展包

安装
--

[](#安装)

1. 安装包文件

    ```
    $ composer require codemonkeyluffy/laravel-geetest
    ```

配置
--

[](#配置)

1. 注册 ServiceProvider:

    ```
    CodeMonkeyLuffy\Geetest\GeetestServiceProvider::class,
    ```
2. 添加 Alias

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

    ```
    php artisan vendor:publish --provider='CodeMonkeyLuffy\Geetest\GeetestServiceProvider'
    ```
4. `.env` 文件增加配置项 `GEETEST_ID` 和 `GEETEST_KEY`

配置项
---

[](#配置项)

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

[](#使用)

1. 前端使用

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

```
{!! Geetest::render("Div Id","Input Width") !!}
```

2. 服务端校验

在服务端使用 `geetest` 验证规则进行二次验证，示例代码：

```
$this->validate($request, [
    'geetest_challenge' => 'required|geetest',
], [
    'geetest' => config('geetest.server_fail_alert')
]);
```

参考图
---

[](#参考图)

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

参考项目
----

[](#参考项目)

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.md) for more information.

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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 ~12 days

Total

4

Last Release

2411d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6491ad3441669fa4d26b8852f86c0bb5728153ddbf9ac896c8a288a717e474cb?d=identicon)[CodeMonkeyLuffy](/maintainers/CodeMonkeyLuffy)

---

Top Contributors

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

---

Tags

laravelgeetestCodeMonkeyluffy

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77018.2M122](/packages/laravel-mcp)[hasinhayder/tyro-dashboard

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

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

Static analysis tool for Laravel applications.

8690.3k12](/packages/laravel-surveyor)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)

PHPackages © 2026

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