PHPackages                             levan/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. [Security](/categories/security)
4. /
5. levan/geetest

ActiveLibrary[Security](/categories/security)

levan/geetest
=============

This is geetest 3.0

2.0(9y ago)73321MITPHP

Since Apr 28Pushed 9y agoCompare

[ Source](https://github.com/echolevan/geetest)[ Packagist](https://packagist.org/packages/levan/geetest)[ RSS](/packages/levan-geetest/feed)WikiDiscussions master Synced 2mo ago

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

### Geetest For Laravel5 And Vue

[](#geetest-for-laravel5-and-vue)

```
采用了Germeyd的package，在此基础上增加了SDK3.0 跟 vue组件

```

#### 安装

[](#安装)

```
composer require levan/geetest

```

#### 配置

[](#配置)

##### 在config目录的app文件下增加如下

[](#在config目录的app文件下增加如下)

```
'providers' => [
	Levan\Geetest\GeetestServiceProvider::class,
];
'aliases'=>[
	'Geetest' => Levan\Geetest\Geetest::class,
]

```

##### 去 [`geetest`](http://www.geetest.com/) 注册帐号 ， 在env文件里面增加如下

[](#去--geetest--注册帐号---在env文件里面增加如下)

```
GEETEST_ID=****
GEETEST_KEY=****

```

#### 生成配置文件

[](#生成配置文件)

会在config目录下生成geetest配置文件，同时在resources目录下生成视图文件，在components生成vue文件

```
php artisan vendor:publish --tag=levan-geetest

```

#### 用法

[](#用法)

`Blade模版`直接在form表单中加入 `{!! Geetest::render() !!}`

```

	User:

	{!! Geetest::render() !!}

	提交

```

`Vue`

##### Example.vue

[](#examplevue)

```
//在公共模版引用这个 放在 app.js 下面

```

```

                User:

			//这里的 login_btn 是你提交按钮的class

            提交

    import Geetest from '../components/geetest/Geetest.vue'

    export default {

        components: {
            Geetest
        },
        methods:{
            error(){
                //点击btn 之后表单 未验证
                console.log('error');
            },
            success(){
                //点击btn 验证成功
                console.log('success');
            }
        }
    }

```

[`Han's blog`](http://vue.echohany.com)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Total

2

Last Release

3308d ago

Major Versions

1.0 → 2.02017-04-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/5792911b377dad46191e59c0cd7e0c538cd6ccaf4f250028bdfdd38c26435e87?d=identicon)[echolevan](/maintainers/echolevan)

### Embed Badge

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

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41478.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

87117.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)[paragonie/hidden-string

Encapsulate strings in an object to hide them from stack traces

7410.6M39](/packages/paragonie-hidden-string)

PHPackages © 2026

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