2017 © Pedro Peláez
 

library instant2fa

A PHP client for Instant2FA.

image

clef/instant2fa

A PHP client for Instant2FA.

  • Wednesday, November 30, 2016
  • by jessepollak
  • Repository
  • 2 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

instant2fa-php

A PHP client for Instant2FA., (*1)

Installation

Install it with composer:, (*2)

composer require clef/instant2fa

Requires PHP 5.4 or newer., (*3)

Usage

See our integration guide for a full walkthrough of the integration. The integration will take you about an hour., (*4)

Here's a flavor of the methods you'll be using:, (*5)


$instant2fa = new \Instant2FA\Instant2FA([ 'access_key' => ACCESS_KEY, 'access_secret' => ACCESS_SECRET ]); $distinct_id = "A_UNIQUE_ID_FOR_A_GIVEN_USER"; // To show hosted 2FA settings: $hosted_page_url = $instant2fa->create_settings($distinct_id); // To show a hosted verification page: try { $hosted_page_url = $instant2fa->create_verification($distinct_id); // Redirect to 2FA verification page } catch (\Instant2FA\Error\MFANotEnabled $e) { // Log the user in as normal } // To see whether a user successfully completed 2FA verification: $succeeded = $instant2fa->confirm_verification($distinct_id, $request->input('instant2faToken'));

The Versions

30/11 2016
30/11 2016

dev-fix-error-handling

dev-fix-error-handling https://instant2fa.com

A PHP client for Instant2FA.

  Sources   Download

MIT

The Requires

 

The Development Requires

api authentication otp 2fa two factor

22/11 2016