Download the PHP package tobischulz/laravel-respawnhost-sdk without Composer
On this page you can find all versions of the php package tobischulz/laravel-respawnhost-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tobischulz/laravel-respawnhost-sdk
More information about tobischulz/laravel-respawnhost-sdk
Files in tobischulz/laravel-respawnhost-sdk
Package laravel-respawnhost-sdk
Short Description Laravel SDK for the RespawnHost.com API to manage game servers, files, backups, payments, and transactions.
License MIT
Homepage https://github.com/tobischulz/laravel-respawnhost-sdk
Informations about the package laravel-respawnhost-sdk
Laravel RespawnHost SDK
Laravel package to integrate with the official RespawnHost API and manage game servers from your application.
Current scope
This repository now contains a stable SDK foundation:
- centralized HTTP client with Bearer API key authentication
- configurable base URL, timeouts, retries, and user agent
- first resource clients for:
serverspaymentstransactionscatalog(public games + packages)
- dedicated exception type for failed API responses
- test baseline with Pest + Testbench
The current implementation was prepared against the public RespawnHost OpenAPI document (version: 1.0.0) and product context from respawnhost.com on February 13, 2026.
Installation
Publish the configuration:
Configuration
Set these environment variables:
Default config file (config/respawnhost-sdk.php):
API Token (Dev and Production)
As of February 13, 2026, the public RespawnHost docs state that API keys are created in the account dashboard:
Directlink to api-key-management Dashboard:
This route currently redirects unauthenticated users to login and is not explicitly documented in the public developer docs, so it may change.
Token for dev environment
- Log in to your RespawnHost dashboard.
- Open API key management from dashboard settings (or use the direct URL above).
- Create a dedicated dev key with only required scopes.
- Use it with the dev API base URL:
Token for production environment
- Create a separate production key (do not reuse the dev key).
- Assign only required production scopes.
- Use it with the production API base URL:
Recommended: keep separate keys per app/environment and rotate them regularly.
Usage
Use the facade:
Rent a server (typed wrapper)
You can call server rent directly via facade with typed parameters:
Validation behavior:
- required parameters (
gameShort,planId) must be present - invalid values (for example wrong
regionorinstanceCount < 1) throw an exception before the HTTP request - for pre-validation of
gameShort, useRespawnHost::gameByShort($gameShort)before rent
Public game catalog (typed models)
The package now supports these public catalog endpoints:
GET /api/gamesGET /api/games/short/{game_short}GET /api/games/short/{game_short}/packages
These endpoints are fetched through the SDK without requiring RESPAWNHOST_API_KEY.
Usage:
These methods return immutable DTO-style classes:
TobiSchulz\LaravelRespawnHostSdk\Models\CatalogGameTobiSchulz\LaravelRespawnHostSdk\Models\CatalogGamePackage
Payments and transactions:
For endpoints that are not wrapped yet, use the generic request method:
Error handling:
Development
Roadmap
- expand endpoint coverage based on OpenAPI tags:
servers/*(files, backups, schedules, shares, minecraft, databases)paymentstransactions
- add request/response DTOs and stronger typing
- add contract tests for critical workflows (rent, powerstate, backups, billing)
Detailed endpoint mapping is tracked in docs/API-COVERAGE.md.
License
MIT. See LICENSE.md.
All versions of laravel-respawnhost-sdk with dependencies
illuminate/contracts Version ^11.0||^12.0
illuminate/http Version ^11.0||^12.0
spatie/laravel-package-tools Version ^1.16