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(11mo ago)14MITPHPPHP &gt;=7.4

Since Jul 21Pushed 11mo 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 today

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

25

—

LowBetter than 35% of packages

Maintenance51

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

347d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/116164142?v=4)[Amirali Shabani](/maintainers/amiralishabani)[@amiralishabani](https://github.com/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

[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

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