Minecraft Query Class: Query Minecraft game servers

Recommend this page to a friend!
  Info   View files (4)   Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 265 All time: 7,632 This week: 329
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
Age: ???
All time rank: 3831456 in United States United States
Week rank: 694 75 in 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  
File Role Description
example.php Example Example script
LICENSE.txt Doc. Documentation
minecraft_query.class.php Class Class source
readme.markdown Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:265
This week:0
All time:7,632
This week:329

For more information send a message to info at phpclasses dot org.