akymos / otp

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#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);

About

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

License:GNU General Public License v3.0


Languages

Language:PHP 100.0%