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

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

tendollor/geetest
=================

Geetest Package for Laravel6-8

v1.2.0(5y ago)08MITPHPPHP ^7.2

Since Mar 18Pushed 5y agoCompare

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

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

极验验证码 v3.0 Laravel

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

安装
--

[](#安装)

1. 安装包文件

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

配置
--

[](#配置)

> Laravel5.5+ 可跳过此步骤

1. config/app.php 注册 ServiceProvider:

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

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

    ```
    php artisan vendor:publish --provider='Misechow\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

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~82 days

Recently: every ~143 days

Total

8

Last Release

2088d ago

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

v1.1.0PHP ^7.3

v1.2.0PHP ^7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9336798?v=4)[tendollor](/maintainers/tendollor)[@tendollor](https://github.com/tendollor)

---

Top Contributors

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

---

Tags

laravelgeetest

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.5k21.5M571](/packages/laravel-boost)[psalm/plugin-laravel

Psalm plugin for Laravel

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

Framework for Roots WordPress projects built with Laravel components.

9762.4M129](/packages/roots-acorn)[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M145](/packages/laravel-mcp)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4851.0k](/packages/sebdesign-laravel-viva-payments)

PHPackages © 2026

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