PHPackages                             felipetti/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. felipetti/captcha

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

felipetti/captcha
=================

This package is for integrating captcha service to Laravel project

v3.0.1(1mo ago)11.4kMITPHPPHP ^8.2

Since Nov 13Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/guille1988/captcha)[ Packagist](https://packagist.org/packages/felipetti/captcha)[ RSS](/packages/felipetti-captcha/feed)WikiDiscussions main Synced 3w ago

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

Installation and usage instructions:
====================================

[](#installation-and-usage-instructions)

What it does:
-------------

[](#what-it-does)

This package allows you to integrate Captcha V2 or V3 to your Laravel application.

Installation:
-------------

[](#installation)

```
composer require felipetti/captcha
```

Usage instructions:
-------------------

[](#usage-instructions)

First you publish config file:

```
php artisan vendor:publish --tag=captcha
```

Config file named captcha.php is published in config folder of root directory. Open the file and put the secret key provided by Google inside "secret\_key" field.

```
/*
    |--------------------------------------------------------------------------
    | Secret Key
    |--------------------------------------------------------------------------
    |
    | This is the Captcha key that only back-end has.
    |
    */

    'secret_key' => ''
```

There are three ways of captcha service integration, assuming $captcha is the field where front-end sends captcha response:

### Form request:

[](#form-request)

```
    use Felipetti\Captcha\Rule\CaptchaVerification;

    public function rules()
    {
        $captcha = ['required', 'string', new CaptchaVerification];

        return compact('captcha');
    }
```

### Request validation:

[](#request-validation)

Let's suppose we have a captcha controller, and we want to make validation inside:

```
use Felipetti\Captcha\Rule\CaptchaVerification;
use Illuminate\Http\Request;

class CaptchaController extends Controller
{
    public function __invoke(Request $request)
    {
        $request->validate(
            ['captcha' => [new CaptchaVerification]]
        );

        //...
    }
}
```

### Validator:

[](#validator)

```
use Felipetti\Captcha\Rule\CaptchaVerification;
use Illuminate\Support\Facades\Validator;
use Illuminate\Http\Request;

class CaptchaController extends Controller
{
    public function __invoke(Request $request)
    {
        $rules  = ['captcha' => [new CaptchaVerification]];

        Validator::make($request->only('captcha'), $rules)->validate();

        //...
    }
}
```

Config:
-------

[](#config)

Explanations in config file are quite expressive, so if you have any questions, please email .

Comments:
---------

[](#comments)

Please star me if you liked the package, it will really help me a lot.

Security:
---------

[](#security)

If you discover any security-related issues, please e-mail me to the one above instead of using the issue tracker.

License:
--------

[](#license)

The MIT License (MIT).

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance90

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

Every ~115 days

Recently: every ~188 days

Total

12

Last Release

48d ago

Major Versions

v1.0.2 → v2.0.02024-04-08

v2.0.6 → v3.0.02025-03-23

PHP version history (2 changes)v1.0.0PHP ^8.1

v2.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/58360e0c63e45b0392c03f527aa3af59e7c531a96279edd8986995942793cf30?d=identicon)[guille1988](/maintainers/guille1988)

---

Top Contributors

[![guille1988](https://avatars.githubusercontent.com/u/62633191?v=4)](https://github.com/guille1988 "guille1988 (12 commits)")

### Embed Badge

![Health badge](/badges/felipetti-captcha/health.svg)

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

###  Alternatives

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135212.4k7](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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