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

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

junliuxian/lumen-geetest
========================

geetest sense bot for lumen 5+

3.0(8y ago)014MITPHPPHP &gt;=5.5

Since Apr 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/kaysonwu/lumen-geetest)[ Packagist](https://packagist.org/packages/junliuxian/lumen-geetest)[ RSS](/packages/junliuxian-lumen-geetest/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (0)

lumen-geetest
=============

[](#lumen-geetest)

极验验证码，Lumen 框架简洁实现

安装
==

[](#安装)

- 使用 `composer` 快速安装

    `composer require junliuxian/geetest`
- 在 `bootstrap/app.php` 文件中添加这一行。注意，你还需要开启 `Session`

    `$app->register(Junliuxian\Geetest\GeetestServiceProvider::class);`
- 启用 `session` 服务，在 `bootstrap/app.php` 中添加以下代码

    ```
       $app->configure('session');
       $app->alias('session', Illuminate\Session\SessionManager::class);

       $app->middleware([
           Illuminate\Session\Middleware\StartSession::class,
       ]);

       $app->register(Illuminate\Session\SessionServiceProvider::class);

    ```

使用
==

[](#使用)

- 在 `.env` 文件中添加配置

    ```
    GEETEST_ID=
    GEETEST_KEY=

    ```
- 在控制器中引用 `Geetest`

    ```
    namespace App\Http\Controllers;

    use Laravel\Lumen\Routing\Controller;
    use Junliuxian\Geetest\Traits\Geetest;

    class LoginController extends Controller
    {
        use Geetest;
    }

    ```
- 在 `routes\web.php` 文件中添加路由

    ```
    $router->post('captcha', 'LoginController@getGeetest');

    ```
- 客户端部署，参考 [geetest](https://docs.geetest.com/install/deploy/client/web)
- 二次验证

    ```
    ```
    namespace App\Http\Controllers;

    use Laravel\Lumen\Routing\Controller;
    use Junliuxian\Geetest\Traits\Geetest;

    class LoginController extends Controller
    {
        use Geetest;

        public function login(Request $request)
        {
            $this->validate($request, [
                 // 注意，验证的字段必须是 challenge
                'geetest_challenge' => 'geetest'
            ]);
        }
    }
    ```

    ```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

2939d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/54e002767d78036837d5bd9fee6f8b2d0261fd3783d75c34a5589f4674b25974?d=identicon)[kayson](/maintainers/kayson)

---

Top Contributors

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

---

Tags

lumengeetestGermey

### Embed Badge

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

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

###  Alternatives

[artesaos/seotools

SEO Tools for Laravel and Lumen

3.3k5.1M60](/packages/artesaos-seotools)[germey/geetest

Geetest Package for Laravel5

15781.4k2](/packages/germey-geetest)[albertcht/lumen-helpers

To support Laravel 's unsupported features in Lumen.

3031.3k1](/packages/albertcht-lumen-helpers)[rdehnhardt/lumen-maintenance-mode

Define application maintenance mode.

2526.3k1](/packages/rdehnhardt-lumen-maintenance-mode)

PHPackages © 2026

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