PHP code example of battleyephp / global-ban
1. Go to this page and download the library: Download battleyephp/global-ban 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/ */
battleyephp / global-ban example snippets
use BattlEye\GlobalBan\Checker;
use BattlEye\Guid\Guid;
$checker = new Checker();
$guid = Guid::fromSteamId64(76561198066209976);
$ban = $checker->check($guid);
if ($ban->exists) {
echo sprintf('User is banned: %s', $ban->reason);
} else {
echo 'User is not banned';
}