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

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

ambitionphp/captcha
===================

Simple Laravel 6 Captcha Package

v1.2(9y ago)05PHPPHP &gt;=5.4

Since Aug 4Pushed 6y agoCompare

[ Source](https://github.com/ambitionphp/captcha)[ Packagist](https://packagist.org/packages/ambitionphp/captcha)[ Docs](https://github.com/hamog/captcha)[ RSS](/packages/ambitionphp-captcha/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (5)Used By (0)

captcha
=======

[](#captcha)

Simple Captcha for laravel 6
----------------------------

[](#simple-captcha-for-laravel-6)

### Installation

[](#installation)

Require this package with composer:

```
composer require hamog/captcha

```

Find the providers key in config/app.php and register the Captcha Service Provider.

```
'providers' => [
    // ...
    Hamog\Captcha\CaptchaServiceProvider::class,
]
```

Find the aliases key in config/app.php.

```
'aliases' => [
    // ...
    'Captcha' => Hamog\Captcha\Facades\Captcha::class,
]
```

### Configuration

[](#configuration)

To use your own settings, publish config.

```
php artisan vendor:publish --provider="Hamog\Captcha\CaptchaServiceProvider"

```

To use your own settings in config/captcha.php, publish config.

```
return [
    'width'         => 170,
    'height'        => 60,
    'font_color'    => '#1A3EA1', //only hexadecimal
    'size'          => 22,
    'length'        => 6,
    'sensitive'     => false,
];
```

### Preview

[](#preview)

[![captcha-preview](https://github.com/hamog/captcha/raw/master/assets/img/captcha.png)](https://github.com/hamog/captcha/blob/master/assets/img/captcha.png)

### Usage

[](#usage)

return captcha image:

```
{!! Captcha::create() !!}

//Or
{!! captcha() !!}
```

Create html image tag:

```
{!! Captcha::img() !!}

//Or
{!! captcha_img() !!}
```

return captcha src:

```
{!! Captcha::src() !!}

//Or
{!! captcha_src() !!}
```

### Validation

[](#validation)

Using captcha rule:

```
'captcha'   => 'required|captcha',
```

Add custom rule message:

```
'captcha' => 'The :attribute is invalid',
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 90.9% 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

2

Last Release

3570d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ddff88901fe95772277efdefb74ba68d41c212f61d4ad6dc2ac369dc688c63a?d=identicon)[ambitionphp](/maintainers/ambitionphp)

---

Top Contributors

[![hamog](https://avatars.githubusercontent.com/u/11465084?v=4)](https://github.com/hamog "hamog (10 commits)")[![khanzadimahdi](https://avatars.githubusercontent.com/u/6291970?v=4)](https://github.com/khanzadimahdi "khanzadimahdi (1 commits)")

---

Tags

captchalaravel5 Captchalaravel5.2

### Embed Badge

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

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

###  Alternatives

[karser/karser-recaptcha3-bundle

Google ReCAPTCHA v3 for Symfony

1862.4M7](/packages/karser-karser-recaptcha3-bundle)[laminas/laminas-captcha

Generate and validate CAPTCHAs using Figlets, images, ReCaptcha, and more

2318.5M43](/packages/laminas-laminas-captcha)[captcha-com/symfony-captcha-bundle

Symfony Captcha Bundle -- BotDetect PHP CAPTCHA generator integration for the Symfony framework.

3991.6k](/packages/captcha-com-symfony-captcha-bundle)[abanoubnassem/filament-grecaptcha-field

Provides a Google reCaptcha V2 field for the Filament Forms

27116.1k2](/packages/abanoubnassem-filament-grecaptcha-field)[aryehraber/statamic-captcha

Protect your Statamic forms using a Captcha service

16194.4k](/packages/aryehraber-statamic-captcha)[mobicms/captcha

A simple PHP CAPTCHA library

2616.4k2](/packages/mobicms-captcha)

PHPackages © 2026

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