Download the PHP package mayomi/minecraftserverstatus without Composer

On this page you can find all versions of the php package mayomi/minecraftserverstatus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package minecraftserverstatus

Minecraft服务器状态获取

Minecraft服务器状态获取, 基于PHP + Composer + Bootsrap, 不通过插件/服务器设定来获取在线玩家、标题、图标等等服务器数据.

测试支持 1.8~1.10 / BungeeCord / WaterFall 等等..

安装方法 / 你需要先安装PHP + Composer

演示页面 / example.php

如果服务器离线 MinecraftServerStatus::query 将会返回 false. 否则将会返回一组数值. 特别注明: 这是原fork的默认页面

发布页面 / index.php

调试成功的基于 Bootsrap 的页面, 你可以在 http://getbootstrap.com/ 获取更多帮助.

配置页面 / config.php

你需要配置IP/端口/服务器名称/副标题/备案信息/网站地址.

可用变量

以下是原fork给出的所有变量

变量名 描述
'hostname'
输出为数字格式的IP, 例如127.0.0.1
'port'
端口返回值, 例如25565
'ping'
网站到服务器的延迟
'version'
服务端核心版本
(例如: 1.9)
'protocol'
服务端核心协议
(例如: 107)
'players'
当前在线的玩家数量
'max_players'
最大设置的玩家数量
'description'
服务端所设置的标语/motd - 输出为带颜色的字体
'description_raw'
服务端所设置的标语/motd - 输出为带颜色符号的字体
'favicon'
服务器图标的 base64 字符串
(你可以使用 html 的 img 标签来显示该图标)
'modinfo'
关于插件的信息

All versions of minecraftserverstatus with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mayomi/minecraftserverstatus contains the following files

Loading the files please wait ....