PHP Classes

Minecraft Query Class: Query Minecraft game servers

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 273 All time: 7,696 This week: 206Up
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 (4)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:273
This week:0
All time:7,696
This week:206Up