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

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

sayakb/captcha
==============

Captcha Package for Laravel 4, Fork of mewebstudio/captcha

810.4k1PHP

Since Dec 17Pushed 12y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

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

A simple [Laravel 4](http://four.laravel.com/) service provider for including the [Captcha for Laravel 4](https://github.com/sayakb/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 `sayakb/captcha` package and setting the `minimum-stability` to `dev` (required for Laravel 4) in your project's `composer.json`.

```
{
    "require": {
        "laravel/framework": "4.1.*",
        "sayakb/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(
        // ...
        'Sayakb\Captcha\CaptchaServiceProvider',
    )
```

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

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

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

[](#configuration)

To use your own settings, publish config.

`$ php artisan config:publish sayakb/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.1 Captcha on Github](https://github.com/sayakb/captcha)
- [L4.1 Captcha on Packagist](https://packagist.org/packages/sayakb/captcha)
- [Original L4 Captcha on Github](https://github.com/mewebstudio/captcha)
- [License](http://www.opensource.org/licenses/mit-license.php)
- [Laravel website](http://laravel.com)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69.6% 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/d58478daae50e40aa0d5c24c95076af3da7ef58c00090044b0326cbb3e12f752?d=identicon)[sayakb](/maintainers/sayakb)

---

Top Contributors

[![mewebstudio](https://avatars.githubusercontent.com/u/2125733?v=4)](https://github.com/mewebstudio "mewebstudio (16 commits)")[![sineld](https://avatars.githubusercontent.com/u/445349?v=4)](https://github.com/sineld "sineld (4 commits)")[![sayakb](https://avatars.githubusercontent.com/u/2352440?v=4)](https://github.com/sayakb "sayakb (3 commits)")

### Embed Badge

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

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

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

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