PHPackages                             hamog/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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. hamog/captcha

ActivePackage[Authentication &amp; Authorization](/categories/authentication)

hamog/captcha
=============

Simple Laravel 6 Captcha Package

v1.2(9y ago)821.0k—7.7%1PHPPHP &gt;=5.4

Since Aug 4Pushed 5y ago2 watchersCompare

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

READMEChangelog (1)DependenciesVersions (4)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

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

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

3573d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/915a81ea8fcbf33873e81061d561f8fd83886535e02adc83a17235a16faf195f?d=identicon)[hamog](/maintainers/hamog)

---

Top Contributors

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

---

Tags

captchalaravellaravel-5-packagelaravel-captchacaptchalaravel5 Captchalaravel5.2

### Embed Badge

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

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

###  Alternatives

[google/recaptcha

Client library for reCAPTCHA, a free service that protects websites from spam and abuse.

3.6k89.1M222](/packages/google-recaptcha)[anhskohbo/no-captcha

No CAPTCHA reCAPTCHA For Laravel.

1.8k8.5M33](/packages/anhskohbo-no-captcha)[albertcht/invisible-recaptcha

Invisible reCAPTCHA For Laravel.

6031.6M6](/packages/albertcht-invisible-recaptcha)[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)[arcanedev/no-captcha

No CAPTCHA (new Google reCAPTCHA) with Laravel support

370730.4k6](/packages/arcanedev-no-captcha)[buzz/laravel-google-captcha

Google captcha for Laravel

2071.1M2](/packages/buzz-laravel-google-captcha)

PHPackages © 2026

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