【文件属性】:
文件名称:googleauthenticator:谷歌身份验证器
文件大小:4KB
文件格式:ZIP
更新时间:2021-07-10 05:37:34
PHP
Google Authenticator 2 因素身份验证
Google Authenticator 2 因素身份验证
安装
安装此扩展的首选方法是通过 。
要么跑
php composer.phar require --prefer-dist wayhood/googleauthenticator "*"
或添加
"wayhood/googleauthenticator": "*"
到composer.json文件的 require 部分。
用法
安装扩展后,只需通过以下方式在代码中使用它:
use wh/googleauthenticator/ GoogleAuthenticator ';
$ga = new GoogleAuthenticator();
$secret = $ga->createSecret();
echo "Secret is: ".$secret."\n
【文件预览】:
googleauthenticator-master
----example()
--------example.php(517B)
----README.md(1KB)
----GoogleAuthenticator.php(6KB)
----composer.json(422B)