luminar-organization/google-authenticator 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

luminar-organization/google-authenticator

Composer 安装命令:

composer require luminar-organization/google-authenticator

包简介

Google Authenticator Library for PHP

README 文档

README

Tests Status

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-11-10