PHPackages                             haikiri/simple-php-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. [Security](/categories/security)
4. /
5. haikiri/simple-php-totp

ActiveLibrary[Security](/categories/security)

haikiri/simple-php-totp
=======================

Lightweight PHP TOTP (RFC 6238) and Base32 (RFC 4648) generation/decoding for 2FA authentication

1.2.1(3mo ago)0206↓20%MITPHPPHP ^7.0 || &gt;=8.0CI passing

Since Feb 10Pushed 3mo agoCompare

[ Source](https://github.com/MKC-MKC/simple-php-totp)[ Packagist](https://packagist.org/packages/haikiri/simple-php-totp)[ RSS](/packages/haikiri-simple-php-totp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

simple-php-totp
===============

[](#simple-php-totp)

Language: **English** | [Русский](README.ru_RU.md)

A lightweight and vanilla PHP library for generating TOTP (2FA) codes.

Compatibility
-------------

[](#compatibility)

- PHP 7+ &amp;&amp; PHP 8+
- Tests: `phpunit/phpunit` (`^9.6 || ^8.5 || ^6.5`)

Installation
------------

[](#installation)

```
composer require haikiri/simple-php-totp
```

Usage example
-------------

[](#usage-example)

```
