PHPToolKit/src/Example/NoSettingsRequired/RenderVerificationButtons.php
Daniel Siepmann 691adc00a6
Follow and validate against PSR-12
This prevents unnecessary merge conflicts in future.
Also code follows a simple formatting rule set and is easier to read.
2020-10-05 08:49:33 +02:00

27 lines
1.1 KiB
PHP

<?php
declare(strict_types=1);
namespace SkillDisplay\PHPToolKit\Example\NoSettingsRequired;
require '../../../vendor/autoload.php';
// We don't need an APIKey or Verifier Credentials, just create some empty settings
use SkillDisplay\PHPToolKit\Configuration\Settings;
use SkillDisplay\PHPToolKit\Verification\Link;
$mySettings = new Settings('none');
// we want to create Verification Buttons styled in the standard SkillDisplay Design for "Choosing a secure password"
// A click on a link created this way will trigger the Verification interface on the SkillDisplay platform.
// The user will be invited to choose a verifier for the according level and submit a request for skill verification which can be granted or denied.
$myLink = new Link($mySettings, 7);
echo $myLink->getVerificationButton(VERIFICATION_SELF);
echo '<br /><br />';
echo $myLink->getVerificationButton(VERIFICATION_EDUCATIONAL);
echo '<br /><br />';
echo $myLink->getVerificationButton(VERIFICATION_BUSINESS);
echo '<br /><br />';
echo $myLink->getVerificationButton(VERIFICATION_CERTIFICATION);