PHPackages                             longchen2/dcat-auth-google-2fa - 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. longchen2/dcat-auth-google-2fa

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

longchen2/dcat-auth-google-2fa
==============================

Dcat-Admin auth verification by Google 2FA / Dcat-Admin 登录 Google 2FA两步验证

1.0.2(7mo ago)1101MITPHPPHP &gt;=7.1.0

Since Dec 12Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/longChen2/dcat-auth-google-2fa)[ Packagist](https://packagist.org/packages/longchen2/dcat-auth-google-2fa)[ Docs](https://github.com/longChen2/dcat-auth-google-2fa)[ RSS](/packages/longchen2-dcat-auth-google-2fa/feed)WikiDiscussions main Synced 1mo ago

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

Dcat-Admin 登录 Google 2FA两步验证 / Dcat-Admin auth verification by Google 2FA
=========================================================================

[](#dcat-admin-登录-google-2fa两步验证--dcat-admin-auth-verification-by-google-2fa)

[![StyleCI build status](https://camo.githubusercontent.com/0cc242a585701401c18ae7aaf64638eaa98b351d4eacbc8ba66d6a57db110581/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3638363636323730382f736869656c64)](https://camo.githubusercontent.com/0cc242a585701401c18ae7aaf64638eaa98b351d4eacbc8ba66d6a57db110581/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3638363636323730382f736869656c64)

Dcat-Admin 登录 Google 2FA两步验证

[![image](https://private-user-images.githubusercontent.com/6573979/265466383-9d3283ea-2cb4-4ce1-9eff-10ce0b82d41e.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3Lmdpd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ZXN0JlgtQW16LURhdGU9MjAyNjA0MDZUMTkwMzE3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjNjMDU2ODBhOGE5YWZkZDgyNGQ5NjU0N2ZjYTA0MzU4OTQ3NmUzYjg2MTQ3YzExZjY1ZjYxNDQzNDY3Y2Q5NyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.tj3gt8Mh0JRjLdeiB60T0RMfLnJu99nx11Wqk1QHt_c)

### 重要说明！！！

[](#重要说明)

- 本包依赖于[pragmarx/google2fa-qrcode](https://packagist.org/packages/pragmarx/google2fa-qrcode)，该包的二维码依赖是可选扩展包，默认支持[bacon/bacon-qr-code](https://packagist.org/packages/bacon/bacon-qr-code)、[chillerlan/php-qrcode](https://packagist.org/packages/chillerlan/php-qrcode)扩展，需要手动安装，为了兼容性考虑，请选择下方的其中一个扩展安装即可。
- 以上参见说明：[\#3](https://github.com/asundust/dcat-auth-google-2fa/issues/3)

```
composer require bacon/bacon-qr-code

```

```
composer require chillerlan/php-qrcode

```

### 安装

[](#安装)

```
composer require longchen2/dcat-auth-google-2fa

```

### 说明

[](#说明)

- 本应用暂不支持Dact-Admin`1.*`版本，也不考虑支持。
- Dact-Admin`1.*`版本可以使用
- 本项目也是因为看到目前插件空缺才补上，代码参考上述项目。

### 主要功能

[](#主要功能)

- 登录页谷歌2FA认证
- 支持自助绑定解绑
- 管理员可以绑定解绑
- 支持简体中文及英语

### License

[](#license)

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

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance65

Regular maintenance activity

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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

Every ~153 days

Total

3

Last Release

210d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/573fcf255345bc64772d2c61b862bd91ff59089560d78094eb218a4df1d72e35?d=identicon)[nizerin](/maintainers/nizerin)

---

Top Contributors

[![longChen2](https://avatars.githubusercontent.com/u/151934423?v=4)](https://github.com/longChen2 "longChen2 (3 commits)")

---

Tags

googleauth2facaptchaextensionlogindcat admin

### Embed Badge

![Health badge](/badges/longchen2-dcat-auth-google-2fa/health.svg)

```
[![Health](https://phpackages.com/badges/longchen2-dcat-auth-google-2fa/health.svg)](https://phpackages.com/packages/longchen2-dcat-auth-google-2fa)
```

###  Alternatives

[socialconnect/auth

Social Connect Auth Component

568845.4k5](/packages/socialconnect-auth)[asundust/dcat-auth-captcha

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

522.8k](/packages/asundust-dcat-auth-captcha)[asundust/auth-captcha

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

593.6k](/packages/asundust-auth-captcha)[guanguans/dcat-login-captcha

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

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

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

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

PHPackages © 2026

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