akymos/otp

This package is abandoned and no longer maintained. No replacement package was suggested.

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

dev-master 2014-09-18 09:52 UTC

This package is not auto-updated.

Last update: 2022-05-23 14:01:59 UTC


README

#otp

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

Installation

Add a dependency on akymos/otp to your composer.json file.

{
    "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);