Client for the Ace of Spades LAN discovery protocol

v1.0.0 2025-06-29 16:46 UTC

This package is auto-updated.

Last update: 2025-06-29 16:50:43 UTC


README

Pull Ace of Spades server information from PHP using the LAN discovery protocol.

Requirements

  • PHP 8.1+

Installation

composer require aosdotcoffee/hey

Example

Print the server information of aloha.pk tower of babel:

<?php

use AosDotCoffee\Hey\LanClient;

$client = new LanClient('midwest.us.aloha.pk', 32000);
$server = $client->requestHellolan();

echo "Name: {$server->name}\n";
echo "Players: {$server->currentPlayers}/{$server->maxPlayers}\n";
echo "Map: {$server->map}\n";

Backwards compatibility

New versions follow SemVer. Named arguments are covered by the backwards compatibility promise.