PHPackages                             rych/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. [Security](/categories/security)
4. /
5. rych/otp

ActiveLibrary[Security](/categories/security)

rych/otp
========

PHP implementation of the OATH one-time password standards

v1.1.1(10y ago)36265.8k↑17.3%4[1 issues](https://github.com/rchouinard/rych-otp/issues)4MITPHPPHP &gt;=5.3.4

Since Nov 12Pushed 7y ago3 watchersCompare

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

READMEChangelogDependencies (3)Versions (6)Used By (4)

OATH-OTP Implementation for PHP
===============================

[](#oath-otp-implementation-for-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1fc035480ffc1ae8707c4cfd4ecd2f64812134740564837249d5a54f02b3ae9f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f727963682f6f74702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rych/otp)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/d97bd63fc0c9b34a2573bf90478621c45f4d91f694c6b54c6bf970d743de8822/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7263686f75696e6172642f727963682d6f74702e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/rchouinard/rych-otp)[![Coverage Status](https://camo.githubusercontent.com/61002ff553e514d62b1a8f4532224765403de065785447f5082747bc6d41c4a2/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f7263686f75696e6172642f727963682d6f74702e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/r/rchouinard/rych-otp)[![Quality Score](https://camo.githubusercontent.com/e9ad57d6805a8179ac822a91cb9c4ed8ded4c6000c38170878521477aa9d34b0/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f34343431646232642d303837322d346661382d623366372d3633353438363362376264642e737667)](https://insight.sensiolabs.com/projects/4441db2d-0872-4fa8-b3f7-6354863b7bdd)[![Total Downloads](https://camo.githubusercontent.com/f6c178aa02995cb18a5bbac08d643a116ffed8a109c43283d13b3bfa6fde6764/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f727963682f6f74702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rych/otp)

This library provides HMAC and time-based one-time password functionality as defined by [RFC 4226](http://www.ietf.org/rfc/rfc4226.txt) and [RFC 6238](http://www.ietf.org/rfc/rfc6238.txt) for PHP 5.3+.

Install
-------

[](#install)

Via Composer

```
$ composer require rych/otp
```

Usage
-----

[](#usage)

The library makes generating and sharing secret keys easy.

```
