PHP code example of aaronosher / php-uls

1. Go to this page and download the library: Download aaronosher/php-uls 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/ */

    

aaronosher / php-uls example snippets


$options = [
    "version" => 2,
    "jwk" => $jwk,
    "facility" => "ZZZ"
];
$uls = new \Vatusa\Uls\Uls($options);

    $uls->redirectUrl()
    

    $uls->redirectUrl(true)
    

    $uls = new Uls($options);
    if ($uls->verifyToken($token)) {
       // Token was true
    }
    

    $uls->getInfo();