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

ActivePackage

fts/captcha
===========

laravel 5 captcha package

v1.0.0(7y ago)07MITPHPPHP &gt;=5.4

Since Jul 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/fts3232/captcha)[ Packagist](https://packagist.org/packages/fts/captcha)[ RSS](/packages/fts-captcha/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

captcha
=======

[](#captcha)

[![Latest Stable Version](https://camo.githubusercontent.com/0daac78a732885cacb0e36e37a75d8e35077afab9c2a64408be2a4d0f826e75b/68747470733a2f2f706f7365722e707567782e6f72672f6674732f636170746368612f762f737461626c65)](https://packagist.org/packages/fts/captcha)[![Total Downloads](https://camo.githubusercontent.com/a4c632c47421ee60aa8cac0ccd2d5b7a048f6d65b9b43056ccf66f3b3854545f/68747470733a2f2f706f7365722e707567782e6f72672f6674732f636170746368612f646f776e6c6f616473)](https://packagist.org/packages/fts/captcha)[![License](https://camo.githubusercontent.com/924c1540591947ccc95a280561b0ae8a40cb41843cf4a4fd83b1ea3eb1df8f80/68747470733a2f2f706f7365722e707567782e6f72672f6674732f636170746368612f6c6963656e7365)](https://packagist.org/packages/fts/captcha)

功能
==

[](#功能)

- 生成验证码
- 检查验证码

安装
==

[](#安装)

```
composer require fts/captcha

```

### 发布配置文件

[](#发布配置文件)

```
 php artisan vendor:publish

```

### 添加服务提供者

[](#添加服务提供者)

打开 `config/app.php` 并添加以下内容到 providers 数组:

```
fts\Captcha\CaptchaServiceProvider.php::class

```

用法
==

[](#用法)

```
 Route::any('captcha-test', function()
    {
        if (Request::getMethod() == 'POST')
        {
            $rules = ['captcha' => 'required|captcha'];
            $validator = Validator::make(Input::all(), $rules);
            if ($validator->fails())
            {
                echo 'Incorrect!';
            }
            else
            {
                echo 'Matched :)';
            }
        }

        $form = '';
        $form .= '';
        $form .= '' . captcha_img() . '';
        $form .= '';
        $form .= 'Check';
        $form .= '';
        return $form;
    });

```

### 获取图片

[](#获取图片)

```
captcha();

```

### 获取图片html

[](#获取图片html)

```
captcha_src();

```

### 获取图片url

[](#获取图片url)

```
captcha_img();

```

###  Health Score

24

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2809d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b248f8f7fb61ee4e9e2f661a993b603f679023ead09f3655cc8cfd6cfdfe6f4?d=identicon)[fts3232](/maintainers/fts3232)

---

Top Contributors

[![fts3232](https://avatars.githubusercontent.com/u/14908395?v=4)](https://github.com/fts3232 "fts3232 (6 commits)")

---

Tags

laravelcaptcha

### Embed Badge

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

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

###  Alternatives

[mews/captcha

Laravel 5/6/7/8/9/10/11/12 Captcha Package

2.6k5.4M77](/packages/mews-captcha)[yangbx/captcha-lumen

captcha for lumen

123.8k](/packages/yangbx-captcha-lumen)

PHPackages © 2026

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