PHPackages                             salahhusa9/laravel-geetest-captcha - 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. salahhusa9/laravel-geetest-captcha

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

salahhusa9/laravel-geetest-captcha
==================================

Laravel GeeTest Captcha for Laravel 9-10-11

v0.0.3(1y ago)162.8k↓11.1%1[1 issues](https://github.com/salahhusa9/laravel-geetest-captcha/issues)[8 PRs](https://github.com/salahhusa9/laravel-geetest-captcha/pulls)MITPHPPHP ^8.2||^8.0CI passing

Since Jul 4Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/salahhusa9/laravel-geetest-captcha)[ Packagist](https://packagist.org/packages/salahhusa9/laravel-geetest-captcha)[ Docs](https://github.com/salahhusa9/laravel-geetest-captcha)[ GitHub Sponsors](https://github.com/salahhusa9)[ RSS](/packages/salahhusa9-laravel-geetest-captcha/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (17)Used By (0)

Laravel Geetest Captcha, the best alternative to Google reCaptcha
=================================================================

[](#laravel-geetest-captcha-the-best-alternative-to-google-recaptcha)

[![Latest Version on Packagist](https://camo.githubusercontent.com/59c2db95407ce51357ba68da5038b0096bf82d93e221d431161e0a2ee6b1d86d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616c616868757361392f6c61726176656c2d676565746573742d636170746368612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/salahhusa9/laravel-geetest-captcha)[![laravel](https://camo.githubusercontent.com/d4c00eda1477cfe3b6ed2c83078b7c7749ab514ffa07d384f7003d6cc63468f2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d39253743313025374331312d726564)](https://camo.githubusercontent.com/d4c00eda1477cfe3b6ed2c83078b7c7749ab514ffa07d384f7003d6cc63468f2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d39253743313025374331312d726564)[![GitHub Tests Action Status](https://camo.githubusercontent.com/960719596b30ae9fe8474b6329a391db04a1603eb6fc63e8cf6b3160418c408f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f73616c616868757361392f6c61726176656c2d676565746573742d636170746368612f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/salahhusa9/laravel-geetest-captcha/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/22ebe82f175d24935e2524626ee5f9969b0bb7d1ed86c5df7cf39da9dc0e0642/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f73616c616868757361392f6c61726176656c2d676565746573742d636170746368612f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/salahhusa9/laravel-geetest-captcha/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/20824eaf279920ebedc0798a5df225f80e5d321cc0baca55d01032abc4753cc5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616c616868757361392f6c61726176656c2d676565746573742d636170746368612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/salahhusa9/laravel-geetest-captcha)

Laravel Geetest Captcha is a package that provides a simple way to integrate Geetest Captcha in your Laravel application.

[![20240705-122929d](https://private-user-images.githubusercontent.com/64494826/357791376-24c38b93-817a-43ec-bc30-9cf54736b346.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3Lmd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YLUFtei1EYXRlPTIwMjYwMzMwVDE0NDg1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU2NjM0MmIzMWIyMWI4NzE4OTg2MGIxMTI1YzY5MjY4Yjk5MTRkNDFkM2UxZWQwOWEwZWE2MDA3NjI3YTk0OWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.-v7m964IEslkpKcGfsBCfXCPiYaMAQYYf-7OK8LJMxs)

Support us
----------

[](#support-us)

Does your business depend on our contributions? Reach out and support us on [Github sponsor](https://github.com/sponsors/salahhusa9). All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.

Installation
------------

[](#installation)

1. You can install the package via composer:

```
composer require salahhusa9/laravel-geetest-captcha
```

2. You need to add `@geetestCaptchaAssets()` in head tag in your layout file:

```
>

    Document
    @geetestCaptchaAssets()

    ...

```

3. Sign up and activate your GeeTest account on the [official website](https://geetest.com)
4. Create an ID and Key on the dashboard
5. add GEETEST\_ID and GEETEST\_KEY in .env file

Usage
-----

[](#usage)

### Use in form

[](#use-in-form)

You can use in form like this:

In first add `@geetestCaptchaInit('captcha-id')` in footer of page as script tag, `captcha-id` is the id of the captcha div.

```

    @csrf

        Email

        Password

    Login

@geetestCaptchaInit('captcha-id')
```

and for validation you can use `geetest_captcha` rule in your controller like this:

```
use Salahhusa9\GeetestCaptcha\Rules\GeetestCaptchaValidate;

public function login(Request $request)
{
    $request->validate([
        'email' => 'required|email',
        'password' => 'required',
        'geetest_captcha' => ['required', new GeetestCaptchaValidate]
    ]);

    // your logic
}
```

### Validate via middleware

[](#validate-via-middleware)

You can use in middleware like this:

```
    use Salahhusa9\GeetestCaptcha\Http\Middleware\ValidateGeetestCaptcha;

    Route::post('login', [LoginController::class, 'login'])->middleware(ValidateGeetestCaptcha::class);
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [salahhusa9](https://github.com/salahhusa9)
- [geetest](https://www.geetest.com/en/)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance65

Regular maintenance activity

Popularity28

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.3% 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 ~65 days

Total

3

Last Release

552d ago

PHP version history (2 changes)v0.0.1PHP ^8.2

v0.0.2PHP ^8.2||^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/4191314cbc45f7d51077e26cb1eac2a4d6e1df4de537d03778d2753391d6f03b?d=identicon)[salahhusa9](/maintainers/salahhusa9)

---

Top Contributors

[![salahhusa9](https://avatars.githubusercontent.com/u/64494826?v=4)](https://github.com/salahhusa9 "salahhusa9 (92 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

---

Tags

captchageetest-captchalaravellaravel-frameworklaravel-packagelaravel10laravel11laravel9laravelcaptchageetestsalahhusa9laravel-geetest-captchageetest-captcha

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k89.8M1.0k](/packages/spatie-laravel-permission)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[jeffgreco13/filament-breezy

A custom package for Filament with login flow, profile and teams support.

1.0k1.7M41](/packages/jeffgreco13-filament-breezy)[spatie/laravel-login-link

Quickly login to your local environment

4381.2M1](/packages/spatie-laravel-login-link)[ryangjchandler/laravel-cloudflare-turnstile

A simple package to help integrate Cloudflare Turnstile.

438896.6k2](/packages/ryangjchandler-laravel-cloudflare-turnstile)[spatie/laravel-passkeys

Use passkeys in your Laravel app

444494.4k16](/packages/spatie-laravel-passkeys)

PHPackages © 2026

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