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    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 266 All time: 7,626 This week: 312Up
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: 3836461 in United States United States
Week rank: 633 Up72 in United States United States Up

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:266
This week:0
All time:7,626
This week:312Up

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