Skip to content

aosdotcoffee/hey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hey

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.

About

Client for the Ace of Spades LAN discovery protocol

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages