evgen-dev/google-authenticator
最新稳定版本:v0.1.2
Composer 安装命令:
composer require evgen-dev/google-authenticator
包简介
Laravel/GoogleAuthenticator - generate and check OTP
README 文档
README
Laravel 10.x simple Google Authenticator 2FA auth support.
Installation
Install using composer
composer require evgen-dev/google-authenticator
Add the provider to config/app.php
'providers' => [ EvgenDev\GoogleAuthenticator\GoogleAuthenticatorServiceProvider::class, ]
Using
use EvgenDev\GoogleAuthenticator\Facades\GoogleAuthenticator; GoogleAuthenticator::getCode('YOUR_SECRET_STRING'); GoogleAuthenticator::checkCode('YOUR_SECRET_STRING', 'YOUR_CODE'); GoogleAuthenticator::getQRCodeUrl('username', 'example.org', 'YOUR_SECRET_STRING'); GoogleAuthenticator::generateSecret();
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-06