定制 ilbee/totp 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ilbee/totp

最新稳定版本:2.1.0

Composer 安装命令:

composer require ilbee/totp

包简介

Time-based One-Time Password (TOTP) implementation in PHP

README 文档

README

GitHub last commit GitHub Sponsors GitHub Issues or Pull Requests Packagist License Packagist Version Packagist Downloads Packagist Stars

This project is a PHP implementation of the TOTP (Time-Based One-Time Password) algorithm. This library is designed to be used with the Symfony framework.

Installation

You can install this library via Composer:

composer require ilbee/totp

Usage

Configuration

You can configure TOTP by passing additional options when creating the instance:

<?php
// ./src/Controller/UserController.php

use Ilbee\Totp\Totp;

$totp = new Totp([
    'digits' => 6, // Number of digits for the one-time password
    'period' => 30, // Time period for which a password is valid (in seconds)
    'algorithm' => 'sha1', // TOTP Hash algorithm
]);

Contributions

Contributions are welcome. Please open an issue or submit a pull request for any contributions.

Sponsoring

BuyMeACoffee

License

This project is licensed under the MIT License. See the LICENSE file for more details.

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-23