PHPackages                             jncinet/laravel-email-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. [Mail &amp; Notifications](/categories/mail)
4. /
5. jncinet/laravel-email-captcha

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

jncinet/laravel-email-captcha
=============================

laravel email captcha.

1.0.2(4y ago)011MITPHP

Since Feb 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/jncinet/laravel-email-captcha)[ Packagist](https://packagist.org/packages/jncinet/laravel-email-captcha)[ Docs](https://www.qihucms.com)[ RSS](/packages/jncinet-laravel-email-captcha/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

邮件验证码
-----

[](#邮件验证码)

安装
--

[](#安装)

```
$ composer require jncinet/laravel-email-captcha
```

#### 在配置中如果使用了中文会被转成base64码，使用时需要在对应的配置文件中转回原文

[](#在配置中如果使用了中文会被转成base64码使用时需要在对应的配置文件中转回原文)

示例：

```
...
'from' => [
        'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
        // 因为发件人名称使用了中文，所以在这里转回
        'name' => \Qihucms\Support\Str::decode(env('MAIL_FROM_NAME', 'Example')),
    ],
...
```

添加后台菜单
------

[](#添加后台菜单)

- 菜单名称：邮件配置
- 菜单链接：email-captcha/config

发送验证码请求
-------

[](#发送验证码请求)

- 地址: /email-captcha
- 方法: POST
- 参数：{"email": ''}
- 成功：{"status": "SUCCESS"}
- 失败：{"errors":{"msg": "发送失败"},...}

示例
--

[](#示例)

```
        function emailCaptcha(email) {
            var pattern = /^[A-Za-zd0-9]+([-_.][A-Za-zd]+)*@([A-Za-zd]+[-.])+[A-Za-zd]{2,8}$/;
            if(!pattern.test(email)){
                $.toast("@lang('email-captcha::email_captcha.email_error')", 'text');
                return false;
            }
            axios.post('{{ route('email.captcha') }}', {email})
                .then(function (response) {
                    $.toast(response.data.msg);
                    updateSendCaptchaText();
                })
                .catch(function (error) {
                    if (error.response.status === 422) {
                        var errors = error.response.data.errors, msg;
                        if (errors.length > 0) {
                            for (var i in errors) {
                                msg = errors[i][0];
                            }
                        } else {
                            msg = error.response.data.msg;
                        }
                        $.toast(msg, 'text');
                    } else {
                        $.toast("@lang('email-captcha::email_captcha.send_fail')", 'cancel');
                    }
                    clearInterval(c);
                    $('#sendCaptcha').text("@lang('email-captcha::email_captcha.send_btn_text')");
                    t = 0;
                });
        }

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

1538d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/63541651e21494722aa0d364dca6dbaa132d0ee4e9f85a741b5eff8c587f57ba?d=identicon)[jncinet](/maintainers/jncinet)

---

Tags

laravelemailcaptcha

### Embed Badge

![Health badge](/badges/jncinet-laravel-email-captcha/health.svg)

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

###  Alternatives

[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[hafael/azure-mailer-driver

Supercharge your Laravel or Symfony app with Microsoft Azure Communication Services (ACS)! Effortlessly add email, chat, voice, video, and telephony-over-IP for next-level communication. 🚀

14109.2k](/packages/hafael-azure-mailer-driver)[ashallendesign/laravel-mailboxlayer

A lightweight Laravel package for validating emails using the Mailbox Layer API.

762.0k](/packages/ashallendesign-laravel-mailboxlayer)

PHPackages © 2026

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