Skip to content

xPaw/MumblePing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PHP Mumble Ping

Mumble supports querying server information by sending a ping packet to the target server. This includes: server version, currently connected users, max users allowed, allowed bandwidth. This implementation doesn't require anything on the server side, and will work on any server.

Read more about it here.

How to use it

<?php

use xPaw\Mumble;

// require or your favourite autoloader
require __DIR__ . '/MumblePing.php';

$Info = MumblePing( 'example.com', 64738 );

if( $Info === false )
{
	echo 'Ping failed.';
}
else
{
	echo 'Users: ' . $Info[ 'Users' ] . ' / ' . $Info[ 'MaxUsers' ] . '<br>';
	echo 'Version: ' . $Info[ 'Version' ] . '<br>';
	echo 'Bandwidth: ' . $Info[ 'Bandwidth' ] . ' (bytes)<br>';
}

About

πŸŽ™ A simple function to execute UDP Ping on Mumble servers

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages