cachesistemas/google-authenticator

该包的最新版本(v1.0.0)没有可用的许可证信息。

Google Authenticator

v1.0.0 2023-01-25 14:36 UTC

This package is auto-updated.

Last update: 2024-09-25 18:25:59 UTC


README

联系方式

使用示例

use Cachesistemas\GoogleAuthenticator;

include_once 'vendor/autoload.php';

$ga  = new GoogleAuthenticator():

创建密钥

$secret = $ga->createSecret();

获取 Google 二维码 URL

$qrCode = $ga->getQRCodeGoogleUrl("<email>", $secret,"<NAME>");

验证代码

$check = $ga->verifyCode($secret, "<code>", 2);