Skip to content

pdscopes/twofactor

Repository files navigation

madesimple/twofactor

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