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

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

devwizardhq/wiz-captcha
=======================

This is my package wiz-captcha

1.0.1(2mo ago)23MITPHPPHP ^8.2CI passing

Since May 7Pushed 3w agoCompare

[ Source](https://github.com/DevWizardHQ/wiz-captcha)[ Packagist](https://packagist.org/packages/devwizardhq/wiz-captcha)[ Docs](https://github.com/devwizardhq/wiz-captcha)[ GitHub Sponsors](https://github.com/DevWizardHQ)[ RSS](/packages/devwizardhq-wiz-captcha/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (4)Dependencies (17)Versions (6)Used By (0)

This is my package wiz-captcha
==============================

[](#this-is-my-package-wiz-captcha)

[![Latest Version on Packagist](https://camo.githubusercontent.com/dbe00f62408712304e82ed504f60dcc6319a459a9cb30f468dc19d7270478f05/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64657677697a61726468712f77697a2d636170746368612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/devwizardhq/wiz-captcha)[![GitHub Tests Action Status](https://camo.githubusercontent.com/e9a08610ff32c9851e64be2b24eaee08365e90882b3997026975d0869c6bfd47/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64657677697a61726468712f77697a2d636170746368612f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/devwizardhq/wiz-captcha/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/80615417e55e4144cc587358d2ed42a4efb6cb3a7fb52ac0a571bba28fa6b31c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64657677697a61726468712f77697a2d636170746368612f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/devwizardhq/wiz-captcha/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/b3588fba378c690726d8182e56d7e4555303b2a805fe4c7d1aed8260671e6638/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64657677697a61726468712f77697a2d636170746368612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/devwizardhq/wiz-captcha)

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

[](#installation)

You can install the package via composer:

```
composer require devwizardhq/wiz-captcha
```

You can publish the config file with:

```
php artisan vendor:publish --tag="wiz-captcha-config"
```

Usage
-----

[](#usage)

### In View

[](#in-view)

```

    @csrf

    {!! wiz_captcha_img('default', ['id' => 'captcha-image']) !!}

    Refresh

    @error('captcha')
        {{ $message }}
    @enderror

    Submit

function refreshCaptcha() {
    document.getElementById('captcha-image').src = "{{ route('wiz-captcha.image') }}?" + Date.now();
}

```

### Controller

[](#controller)

```
use DevWizardHQ\Captcha\Rules\CaptchaRule;

$request->validate([
    'captcha' => ['required', new CaptchaRule],
]);
```

### String Rule

[](#string-rule)

```
$request->validate([
    'captcha' => ['required', 'wiz_captcha'],
]);
```

### API Rule

[](#api-rule)

```
$captcha = wiz_captcha_api('math');
```

### API Validation

[](#api-validation)

```
use DevWizardHQ\Captcha\Rules\CaptchaApiRule;

$request->validate([
    'captcha_key' => ['required', 'string'],
    'captcha' => ['required', new CaptchaApiRule($request->captcha_key)],
]);
```

### Route Throttling

[](#route-throttling)

CAPTCHA routes include throttling by default. You can tune it with:

```
WIZ_CAPTCHA_ROUTE_THROTTLE=60,1
```

Set a full middleware string if needed:

```
WIZ_CAPTCHA_ROUTE_THROTTLE=throttle:120,1
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](SECURITY.md) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Shazeedul](https://github.com/DevWizardHQ)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance90

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.8% 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 ~1 days

Total

4

Last Release

76d ago

Major Versions

0.0.2 → 1.0.02026-05-10

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39612205?v=4)[IQBAL HASAN](/maintainers/iqbalhasandev)[@iqbalhasandev](https://github.com/iqbalhasandev)

![](https://avatars.githubusercontent.com/u/85868041?v=4)[Syed Shazeedul Islam](/maintainers/shazeedul)[@shazeedul](https://github.com/shazeedul)

---

Top Contributors

[![shazeedul](https://avatars.githubusercontent.com/u/85868041?v=4)](https://github.com/shazeedul "shazeedul (18 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

laravelDevWizardHQwiz-captcha

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77922.3M186](/packages/laravel-mcp)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M347](/packages/psalm-plugin-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M133](/packages/roots-acorn)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M136](/packages/laravel-pulse)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

45955.7k](/packages/harris21-laravel-fuse)

PHPackages © 2026

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