PHP Package: scheb/2fa-totp

2FA TOTP PHP library providing Time-based One-Time Passwords for secure two-factor authentication.

Current Version: 7.11.0
Last Updated: Date not available
PHP Requirement: ~8.2.0 || ~8.3.0 || ~8.4.0
Dependencies:
phpseclib/phpseclib
endroid/qr-code
⚠️ To ensure full functionality, the above dependencies might be required.

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.

🔗 View on GitHub

Download Latest Version: 7.11.0

Download Download v7.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.