1. Go to this page and download the library: Download nishadil/mfa library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nishadil / mfa example snippets
use Nishadil\Mfa\Mfa;
echo Mfa::createSecretCode();
use Nishadil\Mfa\Mfa;
echo Mfa::setSecretCodeLength(32)->createSecretCode();
use Nishadil\Mfa\Mfa;
$secretCode = "3TYBUTVEXBOBXYTJ6L7NZ4HC7QJWAKMY";
echo Mfa::getTOTP($secretCode);