PHP 2FA

Open-source PHP projects categorized as 2FA

Top 12 PHP 2FA Projects

  1. 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-20

    I 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

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. google2fa

    A One Time Password Authentication package, compatible with Google Authenticator.

    Project mention: L'authentification à double facteur avec Symfony (2FA) | dev.to | 2026-10-05
  4. google2fa-laravel

    A One Time Password Authentication package, compatible with Google Authenticator for Laravel

  5. two-factor

    Two-Factor Authentication for WordPress.

  6. WebAuthn

    A simple PHP WebAuthn (FIDO2/Passkey) server library (by lbuchs)

  7. multiotp

    multiOTP open source strong two factor authentication PHP library, OATH certified, with TOTP, HOTP, Mobile-OTP, YubiKey, SMS, QRcode provisioning, etc.

  8. TwoFactor

    Two-Factor Authentication for all your users out-of-the-box.

  9. twofactor_gateway

    🔑 Second factor provider using an external messaging gateway (Signal, SMS, Telegram, WhatsApp and XMPP)

  10. alfred-imessage-2fa

    iMessage 2FA Workflow for Alfred

  11. 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-05

    GitHub: https://github.com/roundly-consulting/auth-for-laravel

  12. 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

  13. authpress

    AuthPress - Advanced WordPress 2FA Plugin

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

PHP 2FA discussion

Log in or Post with

PHP 2FA related posts

  • L'authentification à double facteur avec Symfony (2FA)

    3 projects | dev.to | 5 Oct 2026
  • GitHub's 2FA is to become mandatory on September 2, 2026

    2 projects | news.ycombinator.com | 20 Jul 2026
  • Building AuthPress: From Simple Telegram 2FA to Extensible WordPress Security Platform

    1 project | dev.to | 16 Sep 2025
  • 2FAuth: A Self-Hosted Web-Based OTP Alternative

    1 project | news.ycombinator.com | 1 May 2023
  • FOSS TOTP App with selfhosted sync

    1 project | /r/selfhosted | 8 Apr 2023
  • 2fauth on docker-compose

    2 projects | /r/synology | 26 Jan 2023
  • Can we trust 2fauth ?

    1 project | /r/selfhosted | 2 Jan 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 14 Nov 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

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

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that PHP is
the 13th most popular programming language
based on number of references?