Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Latest commit

 

History

History
24 lines (18 loc) · 499 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 499 Bytes

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