PHPackages                             contipay/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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. contipay/php-totp

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

contipay/php-totp
=================

A simple and lightweight PHP library for generating Time-based One-Time Passwords (TOTP)

1.1.0(12mo ago)05MITPHPPHP &gt;=7.1

Since May 8Pushed 12mo ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (0)

PHP TOTP Library
================

[](#php-totp-library)

A simple and lightweight PHP library for generating Time-based One-Time Passwords (TOTP) according to RFC 6238.

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

[](#installation)

You can install the library using Composer:

```
composer require contipay/php-totp
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

```
