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

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

anandpilania/laravel-captcha
============================

Captcha validation package for laravel.

v1.0.1(8y ago)014MITPHP

Since Aug 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/AnandPilania/laravel-captcha)[ Packagist](https://packagist.org/packages/anandpilania/laravel-captcha)[ RSS](/packages/anandpilania-laravel-captcha/feed)WikiDiscussions master Synced 2w ago

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

laravel-captcha
===============

[](#laravel-captcha)

Captcha package for laravel, that can be embeded in any website as `widget`.

How to use
==========

[](#how-to-use)

- Install : `composer install anandpilania/laravel-captcha`
- Register `ServiceProvider` OR `Facade` :
    - `AP\Captcha\ServiceProvider::class`
    - `"Captcha" => AP\Captcha\Facade::class`

IF USING DIRECTLY IN LARAVEL PROJECT

- Add `captcha` attribute to the `view` : `Captcha::build()`
    - `build` method accepts two parameters 1- `int - length` of the `captcha value`, 2- `boolean - html` : if passed `true`, returns the default html contianer else return the `code` (default: false)
- Add `validation field` to your specific `controller` : `"captcha_code" => "captcha"`

IF USING AS WIDGET

- Call the `route` : GET: //HOSTNAME/captcha/widget (optionally can pall the `int : length` parameter as //HOSTNAME/captcha/widget/6)
- Refresh the code via calling : GET: //HOSTNAME/captcha/refresh
- Verify it via calling : GET: //HOSTNAME/captcha/verify

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

3253d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b1209e551536746ac78a8a4b7f5a2cc13f776629484c441edc5d3f1a50edbea0?d=identicon)[AnandPilania](/maintainers/AnandPilania)

---

Top Contributors

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

---

Tags

captchalaravel-packagewidgetlaravelcaptchaanandpilania

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M337](/packages/psalm-plugin-laravel)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel

3893.6M1](/packages/axlon-laravel-postal-code-validation)[mohsen/captcha

A simple captcha for laravel 4

125.2k](/packages/mohsen-captcha)

PHPackages © 2026

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