fortytwo/php-sdk-two-factor-authentication

Fortytwo’s Two-Factor Authentication (2FA) API adds an additional layer of security to your users’ login credentials with a unique one-time code which limits the risk of fraudulent access to your website.

1.4.1 2016-09-15 12:49 UTC

This package is not auto-updated.

Last update: 2024-07-20 17:35:44 UTC


README

This SDK help you to use the Two Factor Authentication service from FortyTwo Telecom

How to use it:

With composer:

Using composer:

    composer require fortytwo/php-sdk-two-factor-authentication

directly:

You can download the library from the Fortytwo Telecom website or on our official Github repository.

Testing:

Execute the following command on the project directory:

vendor/bin/phpunit -c tests/Phpunit.xml

Currently the code coverage is 100%.

API:

The SDK expose 2 main functions:

TwoFactorAuthentication::requestCode()

Parameters:

List of optionals arguments:

You can found a more detailled description of each parameter in the API documentation

TwoFactorAuthentication::validateCode()

Parameters:

You can found a more detailled description of each parameter in the API documentation