kmerhosting / sdk
Official PHP SDK for the KmerHosting API.
v0.2.1
2026-09-01 05:50 UTC
Requires
- php: ^8.1
- ext-curl: *
- ext-json: *
README
Official server-side SDKs for the KmerHosting API.
📦 Install
TypeScript
npm install @kmerhosting/sdk
Python
pip install kmerhosting-sdk
PHP
composer require kmerhosting/sdk
Java
Add this dependency to pom.xml:
<dependency> <groupId>com.kmerhosting</groupId> <artifactId>kmerhosting-sdk</artifactId> <version>0.3.0</version> </dependency>
🔑 Authentication
Set your API key in the server environment:
export KMERHOSTING_API_KEY="kh_live_..."
All SDKs read KMERHOSTING_API_KEY automatically.
Keep this key on your server. Never put it in browser code, mobile apps, GitHub, or logs.
Quick use
TypeScript
import { KmerHostingClient } from "@kmerhosting/sdk"; const client = new KmerHostingClient(); const services = await client.services.list(); console.log(services);
Python
from kmerhosting import KmerHostingClient client = KmerHostingClient() services = client.services.list() print(services)
PHP
<?php require __DIR__ . "/vendor/autoload.php"; use KmerHosting\\Client; $client = new Client(); $services = $client->services()->all(); print_r($services);
Java
import com.kmerhosting.sdk.KmerHostingClient; var client = new KmerHostingClient(); var services = client.services().list(); System.out.println(services);
What you can manage
- Account and service inventory
- Domains and DNS records
- Email Hosting
- Shared Hosting
- Read-only LXC instance inventory
- KVM lifecycle, renewal, and snapshot resources
- Safe service actions
Every write operation supports idempotency for safe retries.
Documentation
🏷️ Packages
| Language | Package manager | Package |
|---|---|---|
| TypeScript | npm | @kmerhosting/sdk |
| Python | PyPI | kmerhosting-sdk |
| PHP | Composer | kmerhosting/sdk |
| Java | Maven Central | com.kmerhosting:kmerhosting-sdk |
📄 License
Apache-2.0. KmerHosting trademarks are not granted by the license.