PHPackages                             developer-tz/simple-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. developer-tz/simple-captcha

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

developer-tz/simple-captcha
===========================

Simple Captcha Service Provider for laravel 5

196173[2 issues](https://github.com/developer-tz/laravel-5-simple-captcha/issues)PHP

Since Apr 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/developer-tz/laravel-5-simple-captcha)[ Packagist](https://packagist.org/packages/developer-tz/simple-captcha)[ RSS](/packages/developer-tz-simple-captcha/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Simple Captcha package for Laravel 5
====================================

[](#simple-captcha-package-for-laravel-5)

A simple [Laravel 5](http://laravel.com/) package for including the [Simple Captcha for Laravel 5](https://github.com/developer-tz/laravel-5-simple-captcha).

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

[](#installation)

The Simple Captcha Service Provider can be installed via [Composer](http://getcomposer.org) by requiring the `developer-tz/simple-captcha` package and setting the `minimum-stability` to `dev` in your project's `composer.json`.

```
{
    "require": {
        "laravel/framework": "5.*",
        "developer-tz/simple-captcha": "dev-master"
    },
    "minimum-stability": "dev"
}
```

Update your packages with `composer update` or install with `composer install`.

In Windows, you'll need to include the GD2 DLL `php_gd2.dll` as an extension in php.ini.

Usage
-----

[](#usage)

To use the Simple Captcha Service Provider, you must register the provider when bootstrapping your Laravel application. There are essentially two ways to do this.

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

```
    'providers' => array(
        // ...
        'DeveloperTz\SimpleCaptcha\SimpleCaptchaServiceProvider',
    )
```

Find the `aliases` key in `config/app.php`.

```
    'aliases' => array(
        // ...
        'SimpleCaptcha'      => 'DeveloperTz\SimpleCaptcha\Facades\SimpleCaptcha',
    )
```

Configuration
-------------

[](#configuration)

To use your own settings, publish config.

`$ php artisan vendor:publish`

Example Usage
-------------

[](#example-usage)

```
    // [your site path]/app/routes.php

    Route::any('/simple-captcha-test', function()
    {

        if (Request::getMethod() == 'POST')
        {
            $rules =  array('captcha' => array('required', 'captcha'));
            $validator = Validator::make(Input::all(), $rules);
            if ($validator->fails())
            {
                echo 'Incorrect!';
            }
            else
            {
                echo 'Matched :)';
            }
        }

        $content = Form::open(array(URL::to(Request::segment(1))));
        $content .= '' . HTML::image(SimpleCaptcha::img(), 'Captcha image') . '';
        $content .= '' . Form::text('captcha') . '';
        $content .= '' . Form::submit('Check') . '';
        $content .= '' . Form::close() . '';
        return $content;

    });
```

^\_^

Links
-----

[](#links)

- [L5 Simple Captcha on Github](https://github.com/developer-tz/laravel-5-simple-captcha)
- [L4 Captcha on Packagist](https://packagist.org/packages/developer-tz/simple-captcha)
- [License](http://www.opensource.org/licenses/mit-license.php)
- [Laravel website](http://laravel.com)

### Captcha package for earlier versions,

[](#captcha-package-for-earlier-versions)

- [L4 Captcha on Github](https://github.com/mewebstudio/captcha)
- [L3 Captcha on Github](https://github.com/mewebstudio/mecaptcha)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a55fa2dd3275f4614983b47b4f65617a88b1313f8b16601c7dead8f1b03d8ffc?d=identicon)[developer-tz](/maintainers/developer-tz)

---

Top Contributors

[![developer-tz](https://avatars.githubusercontent.com/u/4946593?v=4)](https://github.com/developer-tz "developer-tz (10 commits)")[![mkanako](https://avatars.githubusercontent.com/u/4190346?v=4)](https://github.com/mkanako "mkanako (1 commits)")

### Embed Badge

![Health badge](/badges/developer-tz-simple-captcha/health.svg)

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

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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