PHPackages                             asundust/dcat-auth-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. asundust/dcat-auth-captcha

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

asundust/dcat-auth-captcha
==========================

Sliding captcha for Dcat-Admin auth, Multiple platform support / Dcat-Admin登录 (滑动)验证插件 多平台支持

2.0.2(4y ago)522.8k3MITPHPPHP &gt;=7.1.0

Since Apr 9Pushed 2y ago2 watchersCompare

[ Source](https://github.com/asundust/dcat-auth-captcha)[ Packagist](https://packagist.org/packages/asundust/dcat-auth-captcha)[ Docs](https://github.com/asundust/dcat-auth-captcha)[ RSS](/packages/asundust-dcat-auth-captcha/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

Dcat-Admin登录 滑动验证插件 多平台支持
=========================

[](#dcat-admin登录-滑动验证插件-多平台支持)

[![StyleCI build status](https://camo.githubusercontent.com/92b75a70237d61adc697897a930c4da1cf974d5a9b69c875969837f473a43683/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3335353434313430362f736869656c64)](https://camo.githubusercontent.com/92b75a70237d61adc697897a930c4da1cf974d5a9b69c875969837f473a43683/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3335353434313430362f736869656c64)

Dcat-Admin登录 滑动验证插件 多平台支持

> 另有 [Laravel-Admin版](https://github.com/asundust/auth-captcha)

### Demo演示

[](#demo演示)

[演示站点](https://captcha.leeay.com)（暂时无，目前地址为Laravel-Admin版的演示地址）

### 支持(按照字母顺序)

[](#支持按照字母顺序)

- [顶象](https://www.dingxiang-inc.com/business/captcha)✔️
- [极验](http://www.geetest.com)✔️
- [hCaptcha(和谷歌Recaptcha v2一样)](https://www.hcaptcha.com)✔️（**免费，速度一般**）
- [Recaptcha v2(谷歌)](https://developers.google.com/recaptcha)✔️（**国内可用，完全免费**）
- [Recaptcha v3(谷歌)](https://developers.google.com/recaptcha)✔️（**国内可用，完全免费**）
- [数美(暂不支持网页)](https://www.ishumei.com/product/bs-post-register.html)
- [腾讯防水墙](https://cloud.tencent.com/document/product/1110/36839)✔️
- [同盾](https://x.tongdun.cn/product/captcha)
- [V5验证](https://www.verify5.com/index)✔️（**免费版日限100次**）
- [Vaptcha](https://www.vaptcha.com)（**不完全免费，不过该验证码使用难度相对较高**）(**需要一个密钥来开发**)
- [网易](http://dun.163.com/product/captcha)
- [云片](https://www.yunpian.com/product/captcha) (**似乎存在一个奇怪的bug死活调不通**)
- 有主流的未发现的、额外有需求的请[issue](https://github.com/asundust/dcat-auth-captcha/issues)

> 受限制于有些验证码密钥是收费版，目前代码不能做到完全兼容 如果有好心人士提供密码 我将严格保密 仅用于开发工作

> 目前不打算开发兼容1.x版本的代码

[![img](https://user-images.githubusercontent.com/6573979/113974655-df986e00-9870-11eb-96c6-aa9f71b8016f.gif)](https://user-images.githubusercontent.com/6573979/113974655-df986e00-9870-11eb-96c6-aa9f71b8016f.gif)

### 安装

[](#安装)

```
composer require asundust/dcat-auth-captcha

```

- **重要说明：由于密钥配置是在后台配置，首次安装前，确保已经登录，安装后及时配置密钥，否则将出现无法登录的情况**
- 若出现上述情况，请先卸载，再登录，然后安装配置，即可解决

### 获取密钥参数配置

[](#获取密钥参数配置)

#### 顶象

[](#顶象)

##### 可配置的参数

[](#可配置的参数)

- AppId: {AppID}
- Secret: {AppSecret}
- 验证码样式: popup // 弹出式: popup 嵌入式: embed 内联式: inline 触发式: oneclick (不填写默认popup)
- 额外配置: \[\]

##### 相关链接

[](#相关链接)

- 访问
- [官网文档配置DEMO](https://cdn.dingxiang-inc.com/ctu-group/captcha-ui/demo)
- [官网文档地址](https://www.dingxiang-inc.com/docs/detail/captcha)

#### 极验

[](#极验)

##### 可配置的参数

[](#可配置的参数-1)

- AppId: {ID}
- Secret: {KEY}
- 验证码样式: bind // 隐藏式: bind 弹出式: popup 浮动式: float 自定区域浮动式(与popup类似，由于登录页面无需自定区域，故效果和popup一样的): custom (不填写默认bind)
- 额外配置: \[\]

##### 相关链接

[](#相关链接-1)

- 访问
- [官网文档地址](http://docs.geetest.com/sensebot/deploy/server/php)

#### hCaptcha

[](#hcaptcha)

##### 可配置的参数

[](#可配置的参数-2)

- AppId: {sitekey}
- Secret: {secret}
- 验证码样式: invisible // 隐藏式: invisible 复选框: display (不填写默认invisible) (invisible有点bug尚未找到号的解决方案，暂不推荐使用)

##### 相关链接

[](#相关链接-2)

- 访问
- [官网文档地址(前端)显示](https://docs.hcaptcha.com/configuration)
- [官网文档地址(前端)隐藏](https://docs.hcaptcha.com/invisible)
- [官网文档地址(后端)](https://docs.hcaptcha.com)

#### Recaptcha v2(谷歌)

[](#recaptcha-v2谷歌)

##### 可配置的参数

[](#可配置的参数-3)

- AppId: {site\_key}
- Secret: {secret}
- 验证码样式: invisible // 隐藏式: invisible 复选框: display (不填写默认invisible)
- 服务域名(可选):  // 服务域名，可选，无此选项默认为

##### 相关链接

[](#相关链接-3)

- 访问  选择v2版
- 管理面板
- [官网文档地址(前端)显示](https://developers.google.com/recaptcha/docs/display)
- [官网文档地址(前端)隐藏](https://developers.google.com/recaptcha/docs/invisible)
- [官网文档地址(后端)](https://developers.google.com/recaptcha/docs/verify/)

#### Recaptcha v3(谷歌)

[](#recaptcha-v3谷歌)

##### 可配置的参数

[](#可配置的参数-4)

- AppId: {site\_key}
- Secret: {secret}
- 验证码样式: invisible // 隐藏式: invisible 复选框: display (不填写默认invisible)
- 服务域名(可选):  // 服务域名，可选，无此选项默认为
- 可信任分数(可选): 0.7 // 可信任分数，可选，无此选项默认为 0.7

##### 相关链接

[](#相关链接-4)

- 访问  选择v3版
- 管理面板
- [官网文档地址(前端)](https://developers.google.com/recaptcha/docs/v3)
- [官网文档地址(后端)](https://developers.google.com/recaptcha/docs/verify/)

#### 腾讯防水墙

[](#腾讯防水墙)

##### 可配置的参数

[](#可配置的参数-5)

- AppId: {AppID}
- Secret: {AppSecretKey}

##### 相关链接

[](#相关链接-5)

- 新用户购买
- 新用户[官方使用文档地址](https://cloud.tencent.com/document/product/1110/36839)
- 老用户[官方使用文档地址](https://007.qq.com/captcha/#/gettingStart)
- [关于腾讯防水墙收费的声明(新用户终身免费5万次)](https://007.qq.com/help.html?ADTAG=index.head)

#### V5验证

[](#v5验证)

##### 可配置的参数

[](#可配置的参数-6)

- AppId: {APP ID}
- Secret: {APP Key}
- 主机: {Host}

##### 相关链接

[](#相关链接-6)

- 访问
- 访问 [官方使用文档地址](https://www.verify5.com/doc/reference)

#### Vaptcha

[](#vaptcha)

##### 可配置的参数

[](#可配置的参数-7)

- AppId: {VID}
- Secret: {Key}
- 验证码样式: invisible // 隐藏式: invisible 点击式: click 嵌入式: embed (不填写默认invisible)
- 额外配置: \[\]

##### 相关链接

[](#相关链接-7)

- 访问
- 访问 [官方使用文档地址](https://www.vaptcha.com/document/install)

#### 网易易盾

[](#网易易盾)

##### 可配置的参数

[](#可配置的参数-8)

- AppId: {captchaId}
- Secret: {secretId}
- Secret Key: {secretKey}
- 验证码样式: // 注意后台申请的类型！！！ 常规弹出式: popup 常规嵌入式: embed 常规触发式: float 无感绑定按钮：bind 无感点击式: ''(留空，奇葩设定) (不填写默认popup)
- 额外配置: \[\]

##### 相关链接

[](#相关链接-8)

- 访问
- 访问 [官方使用文档地址](http://support.dun.163.com/documents/15588062143475712?docId=150401879704260608)

#### 云片

[](#云片)

##### 可配置的参数

[](#可配置的参数-9)

- AppId: {APPID}
- Secret: {Secret Id}
- Secret Key: {secretKey}
- 验证码样式: // flat: 直接嵌入 float: 浮动 dialog: 对话框 external: 外置滑动(拖动滑块时才浮现验证图片，仅适用于滑动拼图验证) (不填写默认dialog) TIP：flat和external貌似存在回调bug，不推荐使用
- 额外配置: \[\]

##### 相关链接

[](#相关链接-9)

- 访问
- 访问 [官方使用文档地址](https://www.yunpian.com/official/document/sms/zh_CN/captcha/captcha_service)

### 使用

[](#使用)

在浏览器里打开dcat-admin登录页

### 未来

[](#未来)

- 加入更多滑动验证码（持续添加ing）:heavy\_check\_mark:
- 验证码功能模块化，提供给Laravel项目内使用（该想法实现有点难度，看着办吧）

### 升级注意事项

[](#升级注意事项)

[UPGRADE.md](UPGRADE.md)

### 更新日志

[](#更新日志)

[CHANGE\_LOG.md](CHANGE_LOG.md)

### 鸣谢名单

[](#鸣谢名单)

[de-memory](https://github.com/de-memory)

### 支持

[](#支持)

如果觉得这个项目帮你节约了时间，不妨支持一下呗！

[![alipay](https://user-images.githubusercontent.com/6573979/91679916-2c4df500-eb7c-11ea-98a7-ab740ddda77d.png)](https://user-images.githubusercontent.com/6573979/91679916-2c4df500-eb7c-11ea-98a7-ab740ddda77d.png)[![wechat](https://user-images.githubusercontent.com/6573979/91679913-2b1cc800-eb7c-11ea-8915-eb0eced94aee.png)](https://user-images.githubusercontent.com/6573979/91679913-2b1cc800-eb7c-11ea-8915-eb0eced94aee.png)

### License

[](#license)

[The MIT License (MIT)](https://opensource.org/licenses/MIT)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.8% 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 ~67 days

Total

3

Last Release

1768d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6573979?v=4)[塵世不再](/maintainers/asundust)[@asundust](https://github.com/asundust)

---

Top Contributors

[![asundust](https://avatars.githubusercontent.com/u/6573979?v=4)](https://github.com/asundust "asundust (15 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

captchadcat-adminextensiongeetesthcaptchalaravelrecaptchaauthcaptchaextensionlogindcat adminsliding captchaauth captchamultiple platform

### Embed Badge

![Health badge](/badges/asundust-dcat-auth-captcha/health.svg)

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

###  Alternatives

[asundust/auth-captcha

Sliding captcha for Laravel-Admin auth, Multiple platform support / Laravel-Admin登录 滑动验证插件 多平台支持

603.8k](/packages/asundust-auth-captcha)[overtrue/socialite

A collection of OAuth 2 packages.

1.4k5.6M90](/packages/overtrue-socialite)[ellaisys/aws-cognito

AWS Cognito package that allows Auth and other related features using the AWS SDK for PHP

121242.9k1](/packages/ellaisys-aws-cognito)[guanguans/dcat-login-captcha

Dcat admin login captcha. - Dcat admin 登录验证码。

40112.4k](/packages/guanguans-dcat-login-captcha)[lake/login-captcha

Dcat-admin login captcha extension. / Dcat-admin 登录验证码。

324.7k](/packages/lake-login-captcha)

PHPackages © 2026

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