pmdevelopment / google-authenticator-bundle
Symfony2 的 Google Authenticator
1.2.0
2018-04-17 12:48 UTC
Requires
- php: ^7.1.0
- endroid/qr-code: ^3.2.9
This package is auto-updated.
Last update: 2024-09-12 02:07:37 UTC
README
原始: PHPGangsta/GoogleAuthenticator
- 版权 (c) 2012, http://www.phpgangsta.de
- 作者: Michael Kliewe, @PHPGangsta
- 基于 BSD 许可协议。
为作为 Symfony2 Bundle 和 composer 使用而分支
安装
添加到 composer
"pmdevelopment/google-authenticator-bundle": "dev-master"
添加到内核
new PM\Bundle\GoogleAuthenticatorBundle\PMGoogleAuthenticatorBundle(),
使用
/* @var $ga GoogleAuthenticatorService */ $ga = $this->get("pm.googleauthenticator");
请参阅 [example/example1.php] 以获取示例。作为附加功能,使用 getQrCode() 获取图像。