PHP Classes

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: 255 All time: 7,399 This week: 826Up
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.

Name: Scott Reed <contact>
Classes: 1 package by
Country: United States United States
Age: ???
All time rank: 3705433 in United States United States
Week rank: 1098 Up119 in United States United States Up

# Minecraft PHP Query class

## Usage

### query

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

Queries a Minecraft server

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

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  
This week:0
All time:7,399
This week:826Up