PHP code example of future-station / keyguard
1. Go to this page and download the library: Download future-station/keyguard 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/ */
future-station / keyguard example snippets
$yourApiKey = 'YOUR_API_KEY';
$keyguard = new KeyGuard();
$result = $keyguard
->validate(ServiceType::GITHUB, $yourApiKey);
echo $result->value; // Output: valid