sdieunidou / hytale-api-client
A modern PHP client for the Hytale API.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/sdieunidou/hytale-api-client
Requires
- php: ^8.3
- ext-json: *
- guzzlehttp/guzzle: ^7.8
Requires (Dev)
- phpunit/phpunit: ^11.0
README
A modern PHP client library for interacting with the (unofficial) Hytale Web API.
Requirements
- PHP 8.4 (Compatible with 8.3)
- Composer
Installation
composer install
Usage
use Hytale\HytaleClient; $client = new HytaleClient(); $posts = $client->getBlogPosts(); foreach ($posts as $post) { echo $post['title'] . "\n"; }
Features Used
- PHP 8.2+ Readonly Classes: The client is immutable.
- PHP 8.3 Typed Constants: For robust configuration.
- Constructor Property Promotion: For cleaner code.
Disclaimer
This library uses unofficial endpoints found on the Hytale website. They may change at any time.