PHPackages                             amiralishabani/laravel-aash-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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. amiralishabani/laravel-aash-captcha

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

amiralishabani/laravel-aash-captcha
===================================

A Laravel package for generating customizable image and audio CAPTCHAs.

1.0.0(9mo ago)03MITPHPPHP &gt;=7.4

Since Jul 21Pushed 9mo agoCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Aash Captcha
====================

[](#laravel-aash-captcha)

A customizable and lightweight CAPTCHA package for Laravel applications, designed to protect your forms from bots without relying on external services.

🧩 Installation
--------------

[](#-installation)

You can install the package via Composer:

```
composer require amiralishabani/laravel-aash-captcha

```

If you're using Laravel 10 or newer, the package will auto-discover. For older versions, you can add the service provider manually (not recommended).

🚀 Publishing Assets
-------------------

[](#-publishing-assets)

To publish the configuration and assets (fonts, sounds, views), run:

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

```

⚙️ Configuration
----------------

[](#️-configuration)

A configuration file `aash-captcha.php` will be created in your `config` directory. You can modify it to customize fonts, colors, noise level, route prefix, and more.

🧪 Usage
-------

[](#-usage)

You can use the captcha image in your blade view like this:

```

    @csrf

        Reload

    Submit

function refreshCaptcha() {
    const img = document.querySelector('img[alt=CAPTCHA]');
    img.src = '{{ route('aash.captcha.image') }}?t=' + Date.now();
}

```

In your form handler (controller or route), validate the captcha input:

```
use AashCaptcha\Facades\AashCaptcha;

public function submit(Request $request)
{
    if (!AashCaptcha::check($request->input('captcha'))) {
        return back()->withErrors(['captcha' => 'Invalid CAPTCHA'])->withInput();
    }

    // Proceed with your form logic...
}
```

🧰 License
---------

[](#-license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance56

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

296d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/11eb63313c3d737ef0681fd83a3756bdbc7f0acb77eff16a0d6be0f50967f6ce?d=identicon)[amiralishabani](/maintainers/amiralishabani)

---

Top Contributors

[![amiralishabani](https://avatars.githubusercontent.com/u/116164142?v=4)](https://github.com/amiralishabani "amiralishabani (1 commits)")

### Embed Badge

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

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

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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