luminar-organization/google-authenticator
Composer 安装命令:
composer require luminar-organization/google-authenticator
包简介
Google Authenticator Library for PHP
README 文档
README
Luminar Google Authenticator is a simple library for 2FA using authenticatorapi.com
Installing
composer require luminar-organization/google-authenticator
Functions
Pairing Devices
$authenticator = new \Luminar\GoogleAuthenticator\Authenticator(); // APP_NAME -> Name of your project // APP_INFO -> Example user email // SECRET_CODE -> Static variable same for every user $authenticator->pair("APP_NAME", "APP_INFO", "SECRET_CODE")
Validating
$authenticator = new \Luminar\GoogleAuthenticator\Authenticator(); // PIN -> Combination of 6 numbers provided by user to verify them self // SECRET_CODE -> Static variable same for every user $authenticator->validate("PIN", "SECRET_CODE")
Testing
To run the tests, ensure you have installed all development requirements:
composer install
After that run all tests:
composer run test
License
Luminar Google Authenticator is licensed under the MIT License. See the LICENSE file for more information
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-10