PHPackages                             ambitionphp/captcha6 - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ambitionphp/captcha6

ActivePackage[Utility &amp; Helpers](/categories/utility)

ambitionphp/captcha6
====================

Simple Laravel 6 Captcha Package

07PHP

Since Jan 14Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[bailangzhan/yii2-webuploader

yii2-webuploader组件

5149.5k](/packages/bailangzhan-yii2-webuploader)

PHPackages © 2026

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