Google Authenticator Forked from PHPGangsta/GoogleAuthenticator
composer require leonis/google-authenticator
use \Leonis\GoogleAuthenticator\GoogleAuthenticator;
$secret = GoogleAuthenticator::secret();
$code = GoogleAuthenticator::code($secret);
$result = GoogleAuthenticator::verify($secret,$code);
MIT