SaaSHub helps you find the best software and product alternatives Learn more →
Top 12 PHP 2FA Projects
-
2FAuth
A Web app to manage your Two-Factor Authentication (2FA) accounts and generate their security codes
Project mention: GitHub's 2FA is to become mandatory on September 2, 2026 | news.ycombinator.com | 2026-07-20I have used 2FAuth for years and it is rock solid. You can self-host it on a NAS or a pi or local computer via Docker. https://github.com/Bubka/2FAuth
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
-
google2fa-laravel
A One Time Password Authentication package, compatible with Google Authenticator for Laravel
-
-
-
multiotp
multiOTP open source strong two factor authentication PHP library, OATH certified, with TOTP, HOTP, Mobile-OTP, YubiKey, SMS, QRcode provisioning, etc.
-
-
twofactor_gateway
🔑 Second factor provider using an external messaging gateway (Signal, SMS, Telegram, WhatsApp and XMPP)
-
-
auth-for-laravel
Headless multi-guard authentication for Laravel: password, magic link, email OTP and passkey login, 2FA challenges, JWT + rotating refresh sessions, invitations, verification and activity logging.
Project mention: Auth for Laravel — headless multi-guard login with 2FA, passkeys and JWT sessions | dev.to | 2026-10-05GitHub: https://github.com/roundly-consulting/auth-for-laravel
-
phone-verification-laravel
A library for phone verification via Laravel notification channels. Any notification channel can be used as a sender, and Redis or MongoDB can be used as a storage
-
PHP 2FA discussion
PHP 2FA related posts
-
L'authentification à double facteur avec Symfony (2FA)
-
GitHub's 2FA is to become mandatory on September 2, 2026
-
Building AuthPress: From Simple Telegram 2FA to Extensible WordPress Security Platform
-
2FAuth: A Self-Hosted Web-Based OTP Alternative
-
FOSS TOTP App with selfhosted sync
-
2fauth on docker-compose
-
Can we trust 2fauth ?
-
A note from our sponsor - SaaSHub
www.saashub.com | 14 Nov 2026
Index
What are some of the best open-source 2FA projects in PHP? This list will help you:
| # | Project | Stars |
|---|---|---|
| 1 | 2FAuth | 4,216 |
| 2 | google2fa | 2,013 |
| 3 | google2fa-laravel | 1,054 |
| 4 | two-factor | 828 |
| 5 | WebAuthn | 592 |
| 6 | multiotp | 460 |
| 7 | TwoFactor | 342 |
| 8 | twofactor_gateway | 119 |
| 9 | alfred-imessage-2fa | 118 |
| 10 | auth-for-laravel | 48 |
| 11 | phone-verification-laravel | 11 |
| 12 | authpress | 10 |