2017 © Pedro Peláez
 

library otp

PHP library that enable otp auth (2-step verification)

image

akymos/otp

PHP library that enable otp auth (2-step verification)

  • Thursday, September 18, 2014
  • by akymos
  • Repository
  • 2 Watchers
  • 1 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

otp

otp is PHP library that enable otp auth (2-step verification), (*1)

Installation

Add a dependency on akymos/otp to your composer.json file., (*2)

{
    "require": {
        "akymos/otp": "dev-master"
    }
}

Usage

//Time Based
$tb = new Akymos\Otp\TimeBased();
$tb->setSecretKey("yoursecretkey");
$tb->verify("457584");

//Counter Based
$cb = new Akymos\Otp\CounterBased();
$cb->setSecretKey("yoursecretkey");
$cb->verify("343434", 1);

The Versions

18/09 2014

dev-master

9999999-dev http://github.com/akymos/otp

PHP library that enable otp auth (2-step verification)

  Sources   Download

GPL-3.0

The Requires

 

by Avatar akymos

otp 2-step verification 2 factor 2-step