Ana Sayfa / Kod ve Scriptler / 2FA Kit - PHP Email, SMS and Authenticator Login

2FA Kit - PHP Email, SMS and Authenticator Login

Herhangi bir PHP sitesine iki faktörlü giriş ekleyin: e-posta kodları, SMS kodları ve birlikte gelen yardımcı uygulamayla bir kimlik doğrulayıcı uygulaması.

  • Yayın tarihi29 Eylül 2026
  • Nerede çalışırPHP 8.0, PHP 8.1, PHP 8.2, PHP 8.3, PHP 8.4
  • VeritabanıMySQL 8.0, MariaDB 10.x, MariaDB 11.x, MySQL 5.x
  • Paket içeriği.php, .html, .sql, .md, composer.json, JavaScript .js
  • Son güncelleme13 Ekim 2026
  • Canlı demoVar
2FA Kit - PHP Email, SMS and Authenticator Login

Overview

A drop-in two-factor authentication kit for PHP and MySQL. Let users sign in with a one-time code by email, by SMS, or with an authenticator app like Google Authenticator, Authy, or the bundled Vaultcode app.

Features

  • Email login codes that expire and work once
  • Optional SMS codes through Twilio or any gateway you choose
  • Authenticator app support (RFC 6238 TOTP), with QR code enrollment
  • Vaultcode, a companion authenticator web app included in the kit
  • Rate limiting and lockout after repeated wrong codes
  • Encrypted secrets and hashed codes, nothing stored in plain text
  • Clear PHP functions to call from your own login flow, or a ready JSON API
  • Full setup guide and a self-test script included

Requirements

PHP 8.0 or later with the OpenSSL extension, MySQL or MariaDB. SMS requires your own provider account, such as Twilio. Email requires your own mail server or SMTP account.