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

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

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

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

1.0.0(1mo ago)04MITPHPPHP &gt;=7.1.0

Since May 8Pushed 1mo agoCompare

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

READMEChangelogDependencies (2)Versions (2)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两步验证

### 重要说明！！！

[](#重要说明)

- 本包依赖于[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/alasamber/dcat-auth-google-2fa/issues/3)

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

```

```
composer require chillerlan/php-qrcode

```

### 安装

[](#安装)

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

```

### 说明

[](#说明)

- 本应用暂不支持Dact-Admin`1.*`版本，也不考虑支持。
- Dact-Admin`1.*`版本可以使用

### 主要功能

[](#主要功能)

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

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance94

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

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

32d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fd3f1db415d58606c79adb76243d3319fad7af73552f43677f6cf7c7bb0cb711?d=identicon)[alasamber](/maintainers/alasamber)

---

Tags

googleauth2facaptchaextensionlogindcat admin

### Embed Badge

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

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

###  Alternatives

[socialconnect/auth

Social Connect Auth Component

566875.1k5](/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)[stephenjude/filament-two-factor-authentication

Filament Two Factor Authentication: Google 2FA + Passkey Authentication

84192.9k7](/packages/stephenjude-filament-two-factor-authentication)[asundust/auth-captcha

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

603.8k](/packages/asundust-auth-captcha)[lake/login-captcha

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

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

PHPackages © 2026

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