PHP OTP

Open-source PHP projects categorized as OTP

Top 7 PHP OTP 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. otphp

    TOTP and HOTP one-time passwords.

  4. multiotp

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

  5. laravel-otp

    Headless OTP generation and validation for Laravel — channel-agnostic, event-driven, and framework for any recipient type.

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

  7. otp-auth

    The OTP Auth package allows you to authenticate with one time password access (OTP)

  8. laravel-whatsapp-cost-control

    WhatsApp Business Cloud API for Laravel with the part nobody packages: per-message cost tracking, country rate cards, budget guardrails, template management and a full send audit log.

    Project mention: WhatsApp Cloud API sends you no invoice until it is too late | dev.to | 2026-08-11

    The ledger, the effective-dated rate card and the fail-closed country allowlist described here are packaged as laravel-whatsapp-cost-control, MIT licensed, for Laravel 12 and 13. Sending is already well served by existing packages; this one covers the part that decides what the sending costs.

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 OTP discussion

Log in or Post with

PHP OTP related posts

Index

What are some of the best open-source OTP projects in PHP? This list will help you:

# Project Stars
1 2FAuth 4,222
2 otphp 1,496
3 multiotp 462
4 laravel-otp 222
5 auth-for-laravel 48
6 otp-auth 10
7 laravel-whatsapp-cost-control 4

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
Developer survey
Take the PHP Developer Survey

About 6 minutes on the tools, libraries and AI you use with PHP. You get the results by email.

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