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

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

hnndy/geetest-tool
==================

geetest tool demo

117PHP

Since Nov 28Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

geetest-tool for laravel
========================

[](#geetest-tool-for-laravel)

geetest 验证

Installing
----------

[](#installing)

```
$ composer require hnndy/geetest-tool
```

```
php artisan vendor:publish --provider="Hnndy\GeetestTool\GeetestToolServiceProvider "
```

Usage
-----

[](#usage)

\##1.填写配置 文件发布到config -&gt; geetest.php

```
'captcha_id' => '', //geetest id
'captcha_key' => '', // geetest key
'start_captcha_servle_url' => 'http://***.test/***', // 调用验证码路由, 此处许要执行注册一个路由
'client_type' => 'web', //#web:电脑上的浏览器；h5:手机上的浏览器，包括移动应用内完全内置的web_view；native：通过原生SDK植入APP应用的方式
```

\##1.开始使用 显示验证码视图

```
@include('vendor/captcha/captcha') //在页面中引用验证码视图
```

获取验证码

```
app('geetest')->StartCaptchaServlet();
```

验证

```
$param = [
    'geetest_challenge' => '',
    'geetest_validate' => '',
    'geetest_seccode' =>
];
app('geetest')->VerifyCaptchaServlet($param); //返回bool型
```

Example
-------

[](#example)

视图

```

    @csrf

        @include('vendor/captcha/captcha')

               Remember Me

          Sign In

```

获取验证码

```
Route::get('/getCaptcha', function () {
    $param = [
        'user_id' => '', //用户id 如果不填写 则会 使用str_random(10) 随机10位字符串
        'ip_address' => '' //用户请求验证时所携带的IP
    ];
   echo app('geetest')->StartCaptchaServlet($param);
});
```

验证

```
$param = [
    'geetest_challenge' => '',
    'geetest_validate' => '',
    'geetest_seccode' =>
];
dd(app('geetest')->VerifyCaptchaServlet($param));
```

License
-------

[](#license)

MIT

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/195023a3f7fcba438c0addfa90929d93f2619b5d8cdfd27b7206222c01085dbf?d=identicon)[jasester](/maintainers/jasester)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[elisdn/yii2-gii-fixture-generator

Fixture class generator for Gii module of Yii2 Framework.

25300.3k2](/packages/elisdn-yii2-gii-fixture-generator)

PHPackages © 2026

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