battleyephp/global-ban 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

battleyephp/global-ban

最新稳定版本:v0.0.2

Composer 安装命令:

composer require battleyephp/global-ban

包简介

PHP BattlEye Global Ban Checker

README 文档

README

Latest Version on Packagist Tests Total Downloads

It provides BattlEye Global Ban checker.
You can check if any GUID is banned globally.

Currently only Arma 3 is supported by default, but you can provide Arma 2 OA or DayZ BattlEye hostname with port to check it too.

Installation

Requires PHP 8.2+

Requires ext-sockets

You can install the package via composer:

composer require battleyephp/global-ban

Usage

To check if a Steam account has a global ban:

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';
}

Testing

composer test

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-01