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

akymos/otp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages