PHPackages                             yprisoner/mexcaptcha - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yprisoner/mexcaptcha

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

yprisoner/mexcaptcha
====================

captche package for lumen.

1.2.2(6y ago)016MITPHPPHP &gt;=7.0

Since Aug 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/yprisoner/MexCaptcha)[ Packagist](https://packagist.org/packages/yprisoner/mexcaptcha)[ RSS](/packages/yprisoner-mexcaptcha/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (6)Versions (8)Used By (0)

MexCaptcha —— Laravel / Lumen
=============================

[](#mexcaptcha--laravel--lumen)

本项目修改自 [Captcha for Laravel 5](https://github.com/mewebstudio/captcha).

[![20190810230258.png](https://camo.githubusercontent.com/dbfb7969fd3c1663f10fccde8eee3e24e8fd8f9fb23ec1a833c377502ec08c7f/68747470733a2f2f692e6c6f6c692e6e65742f323031392f30382f31302f724777714a495064694d43793637762e706e67)](https://camo.githubusercontent.com/dbfb7969fd3c1663f10fccde8eee3e24e8fd8f9fb23ec1a833c377502ec08c7f/68747470733a2f2f692e6c6f6c692e6e65742f323031392f30382f31302f724777714a495064694d43793637762e706e67)

### 安装

[](#安装)

```
composer require yprisoner/mexcaptcha -vvv
```

- php &gt;= 7.0
- 添加`mexcaptcha`配置文件

bootstrap/app.php 添加

```
$app->configure('mexcaptcha');
```

```
$app->register(MexCaptcha\Providers\MexCaptchaServiceProvider::class);
```

### 缓存

[](#缓存)

- 使用自定义缓存, 实现`CacheHandlerInterface`接口
- `mexcaptcha`配置中添加缓存

### Example

[](#example)

```
'cache_handler' =>  \App\Handler\CaptchaCacheHandler::class // implements MexCaptcha\Contracts\CacheHandlerInterface
```

```
