ericmann/totp
Composer 安装命令:
composer require ericmann/totp
包简介
PHP implementation of the TOTP protocol.
README 文档
README
A PHP library for generating one-time passwords according to RFC-6238 for time-based OTP generation.
This library is compatible with Google Authenticator apps available for Android and iPhone.
Quick Start
Use Composer to add ericmann/totp to your project.
require __DIR__ . '/vendor/autoload.php'; // Create a new, random token $token = new EAMann\TOTP\Key(); // Import a known token $raw = '...'; $token = EAMann\TOTP\Key::import($raw); // Validate an OTP against a token if (EAMann\TOTP\is_valid_auth_code($token, $otp)) { // ... }
统计信息
- 总下载量: 90
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-19