{"id":36997345,"url":"https://github.com/adrien-nf/minecraft-server-status","last_synced_at":"2026-01-13T23:54:26.162Z","repository":{"id":186429392,"uuid":"675160575","full_name":"adrien-nf/minecraft-server-status","owner":"adrien-nf","description":"Get informations from a Minecraft server in real time.","archived":false,"fork":false,"pushed_at":"2023-08-06T17:57:01.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T12:43:15.132Z","etag":null,"topics":["minecraft","query","rcon","server","serverlistping","slp","status"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/adrien-nf/minecraft-server-status","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adrien-nf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-06T01:49:14.000Z","updated_at":"2023-08-06T17:56:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"db76612b-3726-4e87-a473-d50f16e22fdb","html_url":"https://github.com/adrien-nf/minecraft-server-status","commit_stats":null,"previous_names":["adrien-nf/minecraft-server-status"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/adrien-nf/minecraft-server-status","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrien-nf%2Fminecraft-server-status","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrien-nf%2Fminecraft-server-status/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrien-nf%2Fminecraft-server-status/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrien-nf%2Fminecraft-server-status/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrien-nf","download_url":"https://codeload.github.com/adrien-nf/minecraft-server-status/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrien-nf%2Fminecraft-server-status/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["minecraft","query","rcon","server","serverlistping","slp","status"],"created_at":"2026-01-13T23:54:25.473Z","updated_at":"2026-01-13T23:54:26.149Z","avatar_url":"https://github.com/adrien-nf.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# minecraft-server-status\nGet informations from a Minecraft server in real time.\n## Installation\n### Via composer\n`composer require adrien-nf/minecraft-server-status`\n## Usage\n### Server List Ping\nNo configuration needed from the server, this is the easiest method.\n```php\nuse Ping\\Ping;\n\n$infos = (new Ping(\"localhost\", 25565))-\u003egetInfos();\n\necho $infos-\u003egetVersion(); // 1.20.1\necho $infos-\u003egetServerType(); // Vanilla\necho $infos-\u003egetMotd(); // A Minecraft Server\necho $infos-\u003egetMaxPlayers(); // 20\necho $infos-\u003egetPlayersCount(); // 3\necho $infos-\u003egetIp(); // localhost\necho $infos-\u003egetPort(); // 25565\n\n// With Ping, you only get a partial player list\nvar_dump($infos-\u003egetPlayers()); // [\"Notch\", \"Deadmau5\"]\n\n// Some helper functions\necho $infos-\u003eisPlayerConnected(\"Notch\"); // true\necho $infos-\u003eisVanilla(); // true\necho $infos-\u003eisBukkit(); // false\necho $infos-\u003eisSpigot(); // false\necho $infos-\u003eisPaper(); // false\n```\n### Query\nRequires configuration in `server.properties`:\n- `enable-query=true`\n- `query.port=25565`\n\nOnce this is done, usage is pretty straightforward.\n```php\nuse Queries\\JavaServerQuery;\n\n$infos = (new JavaServerQuery(\"localhost\", 25565))-\u003egetInfos();\n\necho $infos-\u003egetGameType(); // SMP\necho $infos-\u003egetWorldName(); // world\n\n// With Query, you get a full players list\nvar_dump($infos-\u003egetPlayers()); // [\"Notch\", \"Deadmau5\", \"Jeb\"]\nvar_dump($infos-\u003egetPlugins()); // [[\"name\" =\u003e \"Shopkeepers\", \"version\" =\u003e \"2.17.1\"], [\"name\" =\u003e \"HolographicDisplays\", \"version\" =\u003e \"3.0.2\"]]\n\n// Some helper functions\necho $infos-\u003egetPluginsAsString(); // \"Shopkeepers, HolographicDisplays\"\necho $infos-\u003egetPluginsAsString(true); // \"Shopkeepers 2.17.1, HolographicDisplays 3.0.2\"\necho $infos-\u003ehasPlugin(\"Shopkeepers\"); // true\nvar_dump($infos-\u003egetPluginsAsArray()) // [\"Shopkeepers\", \"HolographicDisplays\"]\nvar_dump($infos-\u003egetPluginsAsArray(true)) // [\"Shopkeepers 2.17.1\", \"HolographicDisplays 3.0.2\"]\n```\n## Credits\nThis package has been inspired by [xPaw's](https://github.com/xPaw/PHP-Minecraft-Query) package, extended and corrected for simpler usage.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrien-nf%2Fminecraft-server-status","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrien-nf%2Fminecraft-server-status","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrien-nf%2Fminecraft-server-status/lists"}