/google-authenticator

Google Authenticator PHP

Primary LanguagePHP

Google Authenticator PHP

CONTATO

Example of use:

use Cachesistemas\GoogleAuthenticator;

include_once 'vendor/autoload.php';

$ga  = new GoogleAuthenticator():

create Secret

$secret = $ga->createSecret();

get QRCode Google Url

$qrCode = $ga->getQRCodeGoogleUrl("<email>", $secret,"<NAME>");

verify Code

$check = $ga->verifyCode($secret, "<code>", 2);