Original: PHPGangsta/GoogleAuthenticator
- Copyright (c) 2012, http://www.phpgangsta.de
- Author: Michael Kliewe, @PHPGangsta
- Licensed under the BSD License.
Forked for Usage as Symfony2 Bundle and composer
Add to composer:
"pmdevelopment/google-authenticator-bundle": "dev-master"
Add to kernel:
new PM\Bundle\GoogleAuthenticatorBundle\PMGoogleAuthenticatorBundle(),
/* @var $ga GoogleAuthenticatorService */
$ga = $this->get("pm.googleauthenticator");
For Examples see [example/example1.php]. As additional function use getQrCode() to get the Image.