aosdotcoffee / hey
Client for the Ace of Spades LAN discovery protocol
v1.0.0
2025-06-29 16:46 UTC
Requires
- php: ^8.1
- thecodingmachine/safe: ^3.3
Requires (Dev)
- laravel/pint: ^1.22
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.