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

ActivePackage[Security](/categories/security)

n1ebieski/logic-captcha
=======================

Laravel 5 Logic Captcha Package

v1.1.5(4y ago)04441MITPHP

Since Aug 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/N1ebieski/logic-captcha)[ Packagist](https://packagist.org/packages/n1ebieski/logic-captcha)[ Docs](https://github.com/N1ebieski/laravel-logic-captcha)[ RSS](/packages/n1ebieski-logic-captcha/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (1)Versions (15)Used By (1)

Logic Captcha for Laravel 5
===========================

[](#logic-captcha-for-laravel-5)

A package-plugin extends [Captcha for Laravel 5](https://github.com/mewebstudio/captcha) by Muharrem ERİN for [Laravel 5](http://www.laravel.com/).

New features
------------

[](#new-features)

- New option - customizable logic captcha (question -&gt; answer1 or answer2 ...)
- Support for multiple captcha on single page by Id (only for Base64 method)
- A simple asset in jquery to reload captcha (both method - Base64 and Src by Controller)

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

[](#installation)

1. Install the package via Composer:

```
composer require n1ebieski/logic-captcha

```

2. Publish the configuration file, resources and assets via artisan:

```
php artisan vendor:publish --provider="N1ebieski\LogicCaptcha\Providers\LogicCaptchaServiceProvider"

```

Preview
-------

[](#preview)

[![Preview](https://camo.githubusercontent.com/ee5110d9406257d5242eca6eb8c2bee29d0d306f7b52706ba8f1479fda4b3c1d/68747470733a2f2f692e6962622e636f2f733148505474322f707265766965772e706e67)](https://camo.githubusercontent.com/ee5110d9406257d5242eca6eb8c2bee29d0d306f7b52706ba8f1479fda4b3c1d/68747470733a2f2f692e6962622e636f2f733148505474322f707265766965772e706e67)

Configuration
-------------

[](#configuration)

`config/logic_captcha.php`

```
return [
    'default' => [
        'math' => false,
        'logic' => true,
        'width' => 300,
        'height' => 80,
    ],

    'logic' => [
        'questions' => [
            'Color of the sky?' => [
                'blue'
            ],
            'Highest mountain on Earth?' => [
                'Mount Everest', 'MountEverest'
            ],
            'Natural enemy of the cat?' => [
                'dog', 'human', 'lol'
            ]
        ]
    ]
];
```

Example Usage
-------------

[](#example-usage)

Simple example. Of course, I suggest using the form requests, route-controller-view pattern and assets minified by webpack.

```
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

Route::any('captcha-test', function(Request $request) {
    if (request()->getMethod() == 'POST') {
        $rules = ['captcha' => 'required|captcha'];
        $validator = validator()->make(request()->all(), $rules);
        if ($validator->fails()) {
            echo 'Incorrect!';
        } else {
            echo 'Matched :)';
        }
    }

    $form = 'Multi Captcha on one page by Base64';

    $form .= '';
    $form .= '';
    $form .= '';
    $form .= '';
    $form .= '';
    $form .= 'Check
              Reload';
    $form .= '';

    $form .= '';
    $form .= '';
    $form .= '';
    $form .= '';
    $form .= '';
    $form .= 'Check
              Reload';
    $form .= '';

    $form .= 'Single Captcha by Async Src Controller';

    $form .= '';
    $form .= '';
    $form .= '' . captcha_img() . '';
    $form .= '';
    $form .= 'Check
              Reload';
    $form .= '';

    $form .= '';

    $form .= '';

    return $form;
});
```

Copyright and License
---------------------

[](#copyright-and-license)

Base package [Captcha for Laravel 5](https://github.com/mewebstudio/captcha) was written by [Muharrem ERİN](https://github.com/mewebstudio).

Package [Logic Captcha for Laravel 5](https://github.com/N1ebieski/laravel-logic-captcha) was written by [Mariusz Wysokiński](https://github.com/N1ebieski) and is released under the MIT License.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity66

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

Recently: every ~187 days

Total

14

Last Release

1520d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/452c9e5287b1451a83fee824b440cdc87e4abf08de9c40c508c0b3267e8cdabf?d=identicon)[N1ebieski](/maintainers/N1ebieski)

---

Tags

captchalaravel5 Securitylaravel5 Captchalaravel logic captcha

### Embed Badge

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

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

###  Alternatives

[mews/captcha

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

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

Captcha generator

1.8k9.6M138](/packages/gregwar-captcha)[gregwar/captcha-bundle

Captcha bundle

3524.7M32](/packages/gregwar-captcha-bundle)[usarise/turnstile

PHP library for Turnstile, is Cloudflare’s smart CAPTCHA alternative. It can be embedded into any website without sending traffic through Cloudflare and works without showing visitors a CAPTCHA.

2393.5k6](/packages/usarise-turnstile)

PHPackages © 2026

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