Skip to content

baursh/MCPEQuery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCPEQuery

A simple PHP-based Minecraft Bedrock Edition (MCPE) server query API.

Features

  • Query MCPE server status
  • Get online/offline state
  • Fetch current players and max players
  • Display server MOTD
  • JSON output, easy to integrate

Installation

  1. Clone the repository: git clone https://github.com/baursh/MCPEQuery.git
  2. Navigate to the folder: cd MCPEQuery
  3. Install autoload: composer dump-autoload
  4. Start PHP server: php -S localhost:8000 -t public

Usage

Access via browser or API request: http://localhost:8000/query.php?ip=127.0.0.1&port=19132

Example Output

{
   "online": true, 
   "motd": "Welcome to My MCPE Server", 
   "players": 3, 
   "max_players": 20, 
   "version": "1.21.100"
}

License

MIT License

About

A simple PHP-based Minecraft: Bedrock Edition server query API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages