Popularity
3.2
Growing
Activity
0.0
Stable
142
16
20

Description

Designed to be a vendor-agnostic implementation of various Two-Factor Authentication solutions.

Developed by Paragon Initiative Enterprises for use in our own projects. It's released under a dual license: GPL and MIT. As with all dual-licensed projects, feel free to choose the license that fits your needs.

Code Quality Rank: L3
Monthly Downloads: 569
Programming language: PHP
License: MIT License
Latest version: v0.2.2

Multi-Factor alternatives and similar libraries

Based on the "Authentication and Authorization" category.
Alternatively, view Multi-Factor alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Multi-Factor or a related project?

Add another 'Authentication and Authorization' Library

README

Multi-Factor

Build Status

Designed to be a vendor-agnostic implementation of various Two-Factor Authentication solutions.

Developed by Paragon Initiative Enterprises for use in our own projects. It's released under a dual license: GPL and MIT. As with all dual-licensed projects, feel free to choose the license that fits your needs.

Requirements

Installing

composer require paragonie/multi-factor

Example Usage

<?php
use ParagonIE\MultiFactor\OneTime;
use ParagonIE\MultiFactor\OTP\TOTP;

$seed = random_bytes(20);

// You can use TOTP or HOTP
$otp = new OneTime($seed, new TOTP());

if (\password_verify($_POST['password'], $storedHash)) {
    if ($otp->validateCode($_POST['2facode'])) {
        // Login successful    
    }
}


*Note that all licence references and agreements mentioned in the Multi-Factor README section above are relevant to that project's source code only.