Skip to content

johnstyle/google-authenticator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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