madesimple/twofactor

Library for two factor authentication

Maintainers

Package info

github.com/pdscopes/twofactor

pkg:composer/madesimple/twofactor

Statistics

Installs: 2 714

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v1.2.0 2022-02-25 15:02 UTC

This package is auto-updated.

Last update: 2026-02-26 00:29:31 UTC


README

PHPUnit

Library for two factor authentication.

Google Authenticator

How to use:

use MadeSimple\TwoFactor\GoogleAuthenticator\GoogleAuthenticator;

$auth = new GoogleAuthenticator($secret);
if (!$auth->$verfiy($code)) {
    // Block access
}

// Sign them in