Best laravel framework open-source packages.

Google authenticator

Google Authenticator
Updated 11 months ago

#Google-Authenticator Flattr this

Latest Stable Version Total Downloads Build Status Dependency Status SensioLabsInsight

Google Authenticator

##Usage

###Step 1 - Register application

$google = new GoogleAuthenticator();

// Register application
echo $google->getQRCodeUrl('MyApplicationName');

// Save secret Key
$secretKey = $google->getSecretKey();

###Step 2 - Verify Code

$google = new GoogleAuthenticator($secretKey);

// User submit code
$userSubmitCode = '';

// Verify Code
if ($google->verifyCode($userSubmitCode)) {

    // OK
}

##Demonstration Demonstration