GoogleAuthenticatorProvider
Google Authenticator provider for Silex based on PHPGangsta/GoogleAuthenticator, (*1)
Install (with Composer)
In your composer.json file, just add :, (*2)
"require": {
"t-keller/google-authenticator-provider": "dev-master"
}
Register the provider in Silex
$app->register(new Tkeller\GoogleAuthenticatorProvider\GoogleAuthenticatorProvider());
Use it
A GoogleAuthenticator object is available by calling:, (*3)
$app['google_authenticator']
For more information about PHPGangsta/GoogleAuthenticator, see the documentation (https://github.com/PHPGangsta/GoogleAuthenticator), (*4)
Silex website: http://silex.sensiolabs.org, (*5)