Skip to content

Prepare the V4 status API update - #10

Merged
jgniecki merged 16 commits into
mainfrom
update-4.0
May 30, 2026
Merged

Prepare the V4 status API update#10
jgniecki merged 16 commits into
mainfrom
update-4.0

Conversation

@jgniecki

Copy link
Copy Markdown
Owner

Summary

This PR prepares the V4 update for Minecraft Status. It modernizes the runtime/API surface, adds typed status results, improves protocol parsing and exception mapping, strengthens static analysis, and refreshes public documentation.

What changed

  • Raised the package to PHP 8.1 and added PHPUnit coverage for client lifecycle behavior.
  • Added StatusState, fetch(), typed getResult() result objects, and improved connect() return types.
  • Added sub-second timeout support and a testable SRV resolver.
  • Split protocol parsing into parser classes and tightened Java, Query, Bedrock, and legacy error handling.
  • Added mock socket protocol tests plus opt-in real-server smoke tests.
  • Raised PHPStan to level 8.
  • Reworked the README into a more useful usage guide and updated author contact headers.

Validation

  • composer test
  • composer analyse
  • composer qa
  • composer test-real with a local ignored server list config

@jgniecki
jgniecki marked this pull request as ready for review May 30, 2026 23:21
@jgniecki
jgniecki merged commit 4e1c014 into main May 30, 2026
8 checks passed
@jgniecki
jgniecki deleted the update-4.0 branch May 30, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant