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

ActivePackage[Security](/categories/security)

djimmy/laravel-captcha
======================

A simple Laravel package for generating CAPTCHA images.

v1.0.4(1y ago)08MITPHPPHP &gt;=8.0

Since Dec 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Poliarddjimmy/laravel-captcha)[ Packagist](https://packagist.org/packages/djimmy/laravel-captcha)[ RSS](/packages/djimmy-laravel-captcha/feed)WikiDiscussions main Synced 1mo ago

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

[![](https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg)](https://github.com/djimmy-poliard/laravel-captcha)

[![Build Status](https://camo.githubusercontent.com/c59043e0b28eab034f19dabc49c9222c43e3fbe5e0c6bc2837a5c0086132a211/68747470733a2f2f7472617669732d63692e6f72672f6c61726176656c2f6672616d65776f726b2e737667)](https://travis-ci.org/laravel/framework)[![Total Downloads](https://camo.githubusercontent.com/f63e79c1141fd38a137956e865674bf9942004ae4421f1039a75bf0e4e9a4105/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646a696d6d792f63617074636861)](https://packagist.org/packages/djimmy/captcha)[![Latest Stable Version](https://camo.githubusercontent.com/02a03eb157257ddf6dc3de9b383f5052491604e5afba0648bfdeb2b282d9b13d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646a696d6d792f63617074636861)](https://packagist.org/packages/djimmy/captcha)[![License](https://camo.githubusercontent.com/717b2bef9ebca17861acad2e3bacd849bb11cc828d84c11843ccb22fb6b19e67/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f646a696d6d792f63617074636861)](https://packagist.org/packages/djimmy/captcha)

About Laravel Captcha
---------------------

[](#about-laravel-captcha)

Laravel Captcha is a simple and customizable package to integrate CAPTCHA functionality into your Laravel application. It provides an easy-to-use API for generating CAPTCHA codes and validating user inputs, helping to protect your application from bots and spam.

Features
--------

[](#features)

- Generates customizable CAPTCHA images.
- Validates CAPTCHA inputs.
- Clears CAPTCHA sessions automatically.
- Easily integrates with Laravel applications.

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

[](#installation)

Install the package using Composer:

```
composer require djimmy/captcha
```

Usage
-----

[](#usage)

1. **Add the Service Provider (if not auto-discovered):**

    ```
    // config/app.php
    'providers' => [
        Djimmy\Captcha\CaptchaServiceProvider::class,
    ];
    ```
2. **Publish the Config File:**

    ```
    php artisan vendor:publish --provider="Djimmy\Captcha\CaptchaServiceProvider"
    ```
3. **Generate a CAPTCHA Image:**

    In your controller:

    ```
    use Djimmy\Captcha\CaptchaService;

    public function showCaptcha(CaptchaService $captchaService)
    {
        return $captchaService->generateCaptcha();
    }
    ```
4. **Validate CAPTCHA:**

    ```
    use Illuminate\Http\Request;
    use Djimmy\Captcha\CaptchaService;

    public function validateCaptcha(Request $request, CaptchaService $captchaService)
    {
        $isValid = $captchaService->validateCaptcha($request->input('captcha'));

        if ($isValid) {
            // CAPTCHA is valid
        } else {
            // CAPTCHA is invalid
        }
    }
    ```
5. **Clear CAPTCHA:**

    ```
    $captchaService->clearCaptcha();
    ```

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

[](#contributing)

Contributions are welcome! Please feel free to submit a pull request or open an issue on GitHub.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance40

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Every ~0 days

Total

5

Last Release

508d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/253d0a95bb61088923e0b3eed2cc4543fc87577dd556468b9c11b131f72e89aa?d=identicon)[Poliarddjimmy](/maintainers/Poliarddjimmy)

---

Top Contributors

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

---

Tags

captchaLaravel Securitylaravel-captcha

### Embed Badge

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

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

###  Alternatives

[mews/purifier

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

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

Laravel 5/6/7/8/9/10/11/12 Captcha Package

2.6k5.5M84](/packages/mews-captcha)[captcha-com/laravel-captcha

Laravel Captcha Package -- BotDetect PHP CAPTCHA generator integration for the Laravel framework.

38207.2k](/packages/captcha-com-laravel-captcha)

PHPackages © 2026

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