pmdevelopment / google-authenticator-bundle
Google Authenticator for Symfony2
Installs: 6 639
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 699
Open Issues: 2
Requires
- php: ^7.1.0
- endroid/qr-code: ^3.2.9
This package is auto-updated.
Last update: 2024-12-12 02:37:38 UTC
README
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
Install
Add to composer:
"pmdevelopment/google-authenticator-bundle": "dev-master"
Add to kernel:
new PM\Bundle\GoogleAuthenticatorBundle\PMGoogleAuthenticatorBundle(),
Usage
/* @var $ga GoogleAuthenticatorService */ $ga = $this->get("pm.googleauthenticator");
For Examples see [example/example1.php]. As additional function use getQrCode() to get the Image.