PHPackages                             jp3cki/totp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. jp3cki/totp

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

jp3cki/totp
===========

RFC 6238 / TOTP: Time-Based One-Time Password Algorithm

v3.0.1(1y ago)722.8k↓38.9%MITPHPPHP &gt;= 8.1CI passing

Since Feb 8Pushed 1y ago3 watchersCompare

[ Source](https://github.com/fetus-hina/totp)[ Packagist](https://packagist.org/packages/jp3cki/totp)[ RSS](/packages/jp3cki-totp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (12)Used By (0)

totp
====

[](#totp)

PHP implementation of RFC6238 (TOTP: Time-Based One-Time Password Algorithm).

[![License](https://camo.githubusercontent.com/ceaa98a535bb8140eb5ff3f7179202f0c6824ee2513afa7a354a465970fd0112/68747470733a2f2f706f7365722e707567782e6f72672f6a7033636b692f746f74702f6c6963656e73652e737667)](https://packagist.org/packages/jp3cki/totp)[![Latest Stable Version](https://camo.githubusercontent.com/1e663cd100fa982b1ff29dc979ac4c8ef9a8624387337addcdc743aa3456511b/68747470733a2f2f706f7365722e707567782e6f72672f6a7033636b692f746f74702f762f737461626c652e737667)](https://packagist.org/packages/jp3cki/totp)[![CI](https://github.com/fetus-hina/totp/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/fetus-hina/totp/actions/workflows/ci.yml)

Requirements
------------

[](#requirements)

- PHP (64-bits): PHP 8.1 or later
- PHP Extensions: hash

Install
-------

[](#install)

1. Set up [Composer](https://getcomposer.org/), the de facto standard package manager.
2. `php composer.phar require jp3cki/totp`

Usage
-----

[](#usage)

```
