PHPackages                             christian-riesen/otp - 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. christian-riesen/otp

ActiveLibrary

christian-riesen/otp
====================

One Time Passwords, hotp and totp according to RFC4226 and RFC6238

2.7.0(5y ago)885.1M—0.1%29[5 issues](https://github.com/ChristianRiesen/otp/issues)[4 PRs](https://github.com/ChristianRiesen/otp/pulls)5MITPHPPHP &gt;=5.6.0

Since Jan 29Pushed 2y ago3 watchersCompare

[ Source](https://github.com/ChristianRiesen/otp)[ Packagist](https://packagist.org/packages/christian-riesen/otp)[ Docs](https://github.com/ChristianRiesen/otp)[ RSS](/packages/christian-riesen-otp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (20)Used By (5)

One Time Passwords
==================

[](#one-time-passwords)

[![Build Status](https://camo.githubusercontent.com/16ede387423c897790c9cd8b73d38d59d53c4a84588111add5fb0d6795aa985e/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f43687269737469616e52696573656e2f6f74702e706e67)](http://travis-ci.org/ChristianRiesen/otp)

Did you like this? Flattr it:

[![Flattr otp](https://camo.githubusercontent.com/7e3f46a36526479d701ef7f90a0f8c3ac2fbab3087446e2a9fceed75cd1ab802/687474703a2f2f6170692e666c617474722e636f6d2f627574746f6e2f666c617474722d62616467652d6c617267652e706e67)](https://flattr.com/thing/719284/ChristianRiesenotp-on-GitHub)

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

[](#installation)

Use [composer](http://getcomposer.org/) and require the library in your `composer.json`

```
{
    "require": {
        "christian-riesen/otp": "^2.0",
    }
}

```

Usage
-----

[](#usage)

```
