PHPackages                             cuoma/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. [Security](/categories/security)
4. /
5. cuoma/captcha

ActiveLibrary[Security](/categories/security)

cuoma/captcha
=============

Captcha Package for Laravel 4

1.0.0(7y ago)052MITPHPPHP &gt;=5.3.0

Since Jan 31Pushed 7y ago4 watchersCompare

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

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

Captcha for Laravel 4
=====================

[](#captcha-for-laravel-4)

A simple [Laravel 4](http://four.laravel.com/) service provider for Laravel 4, bassed on [Mews/Captcha](http://github.com/mewebstudio/captcha)

Preview
-------

[](#preview)

[![Preview](https://camo.githubusercontent.com/d82ebc3307d2dee86766a9cc3b8d044546dc0bdd4ca3f722b3618f35191c379e/687474703a2f2f692e696d6775722e636f6d2f6b665859686c6b2e6a70673f31)](https://camo.githubusercontent.com/d82ebc3307d2dee86766a9cc3b8d044546dc0bdd4ca3f722b3618f35191c379e/687474703a2f2f692e696d6775722e636f6d2f6b665859686c6b2e6a70673f31)

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

[](#installation)

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

```
{
    "require": {
        "laravel/framework": "4.0.*",
        "cuoma/captcha": "dev-master"
    },
    "minimum-stability": "dev"
}
```

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

Usage
-----

[](#usage)

To use the 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 `app/config/app.php` and register the Captcha Service Provider.

```
    'providers' => array(
        // ...
        'cuoma\Captcha\CaptchaServiceProvider',
    )
```

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

```
    'aliases' => array(
        // ...
        'Captcha' => 'cuoma\Captcha\Facades\Captcha',
    )
```

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

[](#configuration)

To use your own settings, publish config.

`$ php artisan config:publish cuoma/captcha`

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

[](#example-usage)

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

    Route::any('/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(Captcha::img(), 'Captcha image') . '';
        $content .= '' . Form::text('captcha') . '';
        $content .= '' . Form::submit('Check') . '';
        $content .= '' . Form::close() . '';
        return $content;

    });
```

^\_^

Links
-----

[](#links)

- [L4 Captcha on Github](https://github.com/cuoma/captcha)
- [L4 Captcha on Packagist](https://packagist.org/packages/cuoma/captcha)
- [License](http://www.opensource.org/licenses/mit-license.php)
- [Laravel website](http://laravel.com)
- [Laravel Turkiye website](http://www.laravel.gen.tr)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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 ~0 days

Total

2

Last Release

2660d ago

Major Versions

0.0.1 → 1.0.02019-01-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/9b8c5a256f5c282e999d8af682254bb8ec97cd9d78f487a2d6912bdc451024c2?d=identicon)[larganaraz](/maintainers/larganaraz)

---

Top Contributors

[![larganaraz](https://avatars.githubusercontent.com/u/42005600?v=4)](https://github.com/larganaraz "larganaraz (5 commits)")[![cacique](https://avatars.githubusercontent.com/u/26464?v=4)](https://github.com/cacique "cacique (1 commits)")

---

Tags

laravelsecuritycaptchaLaravel 4L4captcha image

### Embed Badge

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

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

###  Alternatives

[tzsk/otp

A secure, database-free One-Time Password (OTP) generator and verifier for PHP and Laravel.

241641.4k1](/packages/tzsk-otp)[dgtlss/warden

A Laravel package that proactively monitors your dependencies for security vulnerabilities by running automated composer audits and sending notifications via webhooks and email

8745.6k](/packages/dgtlss-warden)[ercsctt/laravel-file-encryption

Secure file encryption and decryption for Laravel applications

642.6k](/packages/ercsctt-laravel-file-encryption)

PHPackages © 2026

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