PHP Classes
elePHPant
Icontem

Minecraft Query Class: Query Minecraft game servers

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2012-03-28 (4 years ago) RSS 2.0 feedNot enough user ratingsTotal: 253 All time: 7,372 This week: 866Up
Version License PHP version Categories
minecraft-query 1.0.0GNU General Publi...5Networking, PHP 5, Games
Description Author

This class can query Minecraft game servers.

It can connect to a Minecraft server on a given address.

The class can send a query to retrieve the game server host name, current number of players and the limit of players allowed by the server.

Picture of Scott Reed
Name: Scott Reed <contact>
Classes: 1 package by
Country: United States United States

Details
# Minecraft PHP Query class

## Usage

### query

    MinecraftQuery::query($address, $port = 25566, $timeout = 2);

Queries a Minecraft server

**Parameters:**  
`$address` - IP address to the Minecraft server.
`$port` - Port of the Minecraft server.
`$timeout` - Time until giving up on connecting to the Minecraft server.

**Returns:**  
An array on success, FALSE on failure.

## License

Copyright (c) 2012 Scott Reed (h02), released under the GPL v3.
  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example script
Accessible without login Plain text file LICENSE.txt Doc. Documentation
Plain text file minecraft_query.class.php Class Class source
Accessible without login Plain text file readme.markdown Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:253
This week:0
All time:7,372
This week:866Up