johnstyle/google-authenticator

PHP 5 Google Authenticator

Installs: 13 365

Dependents: 0

Suggesters: 0

Security: 0

Stars: 22

Watchers: 1

Forks: 2

Open Issues: 0

pkg:composer/johnstyle/google-authenticator

v1.0.8 2015-01-05 19:47 UTC

This package is auto-updated.

Last update: 2025-10-08 09:14:33 UTC


README

#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