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(2mo ago)05MITPHPPHP &gt;=7.1.0

Since May 8Pushed 2mo 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 3w 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

31

—

LowBetter than 65% of packages

Maintenance85

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity29

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

77d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/280061191?v=4)[Alas Amber](/maintainers/alasamber)[@alasamber](https://github.com/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

568893.3k5](/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

84215.9k9](/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)[hasinhayder/tyro-login

Tyro Login - Beautiful, customizable authentication views for Laravel 12 &amp; 13

2484.9k6](/packages/hasinhayder-tyro-login)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.8k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

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