* @copyright 2017 Smiley * @license MIT */ require_once '../vendor/autoload.php'; use chillerlan\{ GoogleAuth\Authenticator, QRCode\QRCode, QRCode\Output\QRMarkup }; $authenticator = new Authenticator; $secret = $authenticator->createSecret(); // -> userdata $data = $authenticator->getUri($secret, 'label', 'example.com'); // markup - svg echo '