PHPackages                             alt-design/alt-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. alt-design/alt-google-2fa

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

alt-design/alt-google-2fa
=========================

Alt Google 2FA addon! Uses google2fa-laravel to integrate it into Statamic.

v1.1.1(1mo ago)06861[2 issues](https://github.com/alt-design/Alt-Google-2fa-Addon/issues)[1 PRs](https://github.com/alt-design/Alt-Google-2fa-Addon/pulls)MITPHPPHP ^8.2CI failing

Since Jan 29Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/alt-design/Alt-Google-2fa-Addon)[ Packagist](https://packagist.org/packages/alt-design/alt-google-2fa)[ RSS](/packages/alt-design-alt-google-2fa/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (6)Versions (17)Used By (0)

Alt Google 2FA Addon
====================

[](#alt-google-2fa-addon)

> Google 2FA - just not requiring like, an hour of setup and config.

Heavily uses  - big shout out 🫶

Features
--------

[](#features)

- Select who needs 2FA enforced by super users and roles
- Select optional user roles that can access 2FA
- Works on Front End and Control Panel

How to Install
--------------

[](#how-to-install)

```
composer require alt-design/alt-google-2fa
```

Basic usage
-----------

[](#basic-usage)

### Settings

[](#settings)

Just nip into the settings, few options

- Enforced / Optional / Off
    - **Enforced** - Users matching the criteria *have* to have 2FA on to access the site.
    - **Optional** - As it says on the tin, the routes are available if you fancy.
    - **Off** - Just turns off the 2FA requirements for Super Users

### Using your own template

[](#using-your-own-template)

Want to use your own template? Don't blame ya! Luckily we've built a tag in to generate the QR code. Template just needs to vaguely look like this:

```

 (Blade) or {{ alt-google-2fa }} if you're using Antlers)

    Cancel & Logout

```

### Example manual inclusion of enabling/disabling 2FA.

[](#example-manual-inclusion-of-enablingdisabling-2fa)

```
{{ if {AltGoogle2FA:is-enabled} }}
    Disable
{{ else }}
    Enable
{{ /if }}

```

Using Database Users?
---------------------

[](#using-database-users)

No problemo! You'll just need to publish the database migration and run it!

```
php artisan vendor:publish --tag=alt-google-2fa-migrations
php artisan migrate

```

Locked yourself out
-------------------

[](#locked-yourself-out)

Oop - you can just disable the settings using the content/alt-google-2fa/settings.yaml, or remove the 2FA field values on your user.

Questions etc
-------------

[](#questions-etc)

Drop us a big shout-out if you have any questions, comments, or concerns. We're always looking to improve our addons, so if you have any feature requests, we'd love to hear them.

Also - check out our other Statamic bits!

### Starter Kits

[](#starter-kits)

- [Alt Starter Kit](https://statamic.com/starter-kits/alt-design/alt-starter-kit)

### Addons

[](#addons)

- [Alt SEO Addon](https://github.com/alt-design/Alt-SEO-Addon)
- [Alt Redirect Addon](https://github.com/alt-design/Alt-Redirect-Addon)
- [Alt Sitemap Addon](https://github.com/alt-design/Alt-Sitemap-Addon)
- [Alt Akismet Addon](https://github.com/alt-design/Alt-Akismet-Addon)
- [Alt Password Protect Addon](https://github.com/alt-design/Alt-Password-Protect-Addon)
- [Alt Cookies Addon](https://github.com/alt-design/Alt-Cookies-Addon)
- [Alt Inbound Addon](https://github.com/alt-design/Alt-Inbound-Addon)

Postcardware
------------

[](#postcardware)

Send us a postcard from your hometown if you like this addon. We love getting mail from other cool peeps!

Alt Design
St Helens House
Derby
DE1 3EE
UK

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance98

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.5% 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 ~35 days

Recently: every ~105 days

Total

13

Last Release

44d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e352e57b5dcf7df2c63eab5bb5c8c152a06917fc08bbba2e9996bdee9d9c1117?d=identicon)[alt-design](/maintainers/alt-design)

---

Top Contributors

[![Alt-Ben](https://avatars.githubusercontent.com/u/12431318?v=4)](https://github.com/Alt-Ben "Alt-Ben (24 commits)")[![Alt-Charlie](https://avatars.githubusercontent.com/u/260397567?v=4)](https://github.com/Alt-Charlie "Alt-Charlie (10 commits)")[![jb000](https://avatars.githubusercontent.com/u/17474154?v=4)](https://github.com/jb000 "jb000 (3 commits)")[![benmAltDesign](https://avatars.githubusercontent.com/u/149595159?v=4)](https://github.com/benmAltDesign "benmAltDesign (2 commits)")[![leon-fablr](https://avatars.githubusercontent.com/u/99803558?v=4)](https://github.com/leon-fablr "leon-fablr (2 commits)")

---

Tags

google-2fastatamicstatamic-addon

### Embed Badge

![Health badge](/badges/alt-design-alt-google-2fa/health.svg)

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

###  Alternatives

[jeffgreco13/filament-breezy

A custom package for Filament with login flow, profile and teams support.

1.0k1.7M41](/packages/jeffgreco13-filament-breezy)[laragear/two-factor

On-premises 2FA Authentication for out-of-the-box.

339785.3k8](/packages/laragear-two-factor)[visanduma/nova-two-factor

Nova Two Factor Authentication

56621.3k](/packages/visanduma-nova-two-factor)[stephenjude/filament-two-factor-authentication

Filament Two Factor Authentication: Google 2FA + Passkey Authentication

81158.7k4](/packages/stephenjude-filament-two-factor-authentication)[rainlab/user-plugin

User plugin for October CMS

11954.3k12](/packages/rainlab-user-plugin)[lifeonscreen/nova-google2fa

This package provides Google2FA to Laravel Nova.

2488.1k](/packages/lifeonscreen-nova-google2fa)

PHPackages © 2026

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