PHP Package: scheb/2fa-totp
2FA TOTP PHP library providing Time-based One-Time Passwords for secure two-factor authentication.
Package Description
The 2FA TOTP PHP library by scheb/2fa-totp offers secure and efficient Time-based One-Time Passwords for robust two-factor authentication processes. With support for various algorithms like SHA1, SHA256, and SHA512, this library ensures reliable security through HMAC-based authenticator applications.
Download Latest Version: 7.11.0

Previous Versions
Code Integration Example
Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/scheb/2fa-totp/7.11.0/loader.php';
require_once 'libs/phpseclib/phpseclib/3.0.47/loader.php';
require_once 'libs/endroid/qr-code/5.0.7/loader.php';
use Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Totp\TotpConfiguration;
use Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Totp\TotpAuthenticator;
$obj = new TotpConfiguration();
echo '✅ Test OK: ' . get_class($obj);
?>
We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.
Community Discussion
Ask questions, share tips, or report issues below.