iotamine / sdk
Official PHP SDK for Iotamine Cloud API
Requires
- guzzlehttp/guzzle: ^7.0
This package is not auto-updated.
Last update: 2026-04-07 08:00:15 UTC
README
The Iotamine PHP SDK allows developers to easily interact with the Iotamine Cloud API.
Create, manage, and automate your Virtual Machines (VPS) and cloud infrastructure using PHP.
๐ Features
- ๐ Authenticate using API Key
- ๐ป Create and manage VPS instances
- ๐ Start, stop, restart, power off, or rebuild VMs
- ๐งฑ List available OS templates and POP (regions)
- ๐ฆ Fully Composer-compatible and PSR-4 autoloaded
๐ฆ Installation
composer require iotamine/sdk
If not published yet, clone the repo and add to your project's
composer.jsonmanually using"repositories"and"path"keys.
๐ Usage
Initialize Client
require 'vendor/autoload.php'; use Iotamine\IotamineClient; use Iotamine\VM; use Iotamine\Core; $client = new IotamineClient("your-api-key"); $vm = new VM($client); $core = new Core($client);
๐ง Examples
List OS & POPs
$osList = $core->listOS(); $popList = $core->listPOP(); print_r($osList); print_r($popList);
Create a VM
$response = $vm->create( "my-server", "StrongPass@123", $osList[0]['id'], $popList[0]['id'], 2, // CPU cores 4, // RAM in GB 80 // Disk in GB ); print_r($response);
Start/Stop VM
$vm->start($vpsId); $vm->stop($vpsId);
Destroy VM
$vm->destroy($vpsId);
๐ Folder Structure
iotamine-php-sdk/
โโโ src/
โ โโโ IotamineClient.php # Core HTTP client
โ โโโ VM.php # VPS operations
โ โโโ Core.php # List OS / POP
โโโ composer.json
โโโ README.md
โ Requirements
- PHP 7.4 or later
- Composer
- OpenSSL enabled in PHP
- Guzzle HTTP client (auto-installed)
๐ Authentication
All API requests require a valid API Key which can be generated from the Iotamine Control Panel.
The key is passed using the header:
Authorization: Api-Key <your-key>
๐งช Development
Clone this repository:
composer install
๐ชช License
This SDK is licensed under the MIT License.
๐ Resources
- ๐ Iotamine Website
- ๐งโ๐ป Iotamine Control Panel
๐ค Contributing
Pull requests and issue reports are welcome. Feel free to fork the repo and submit a PR.
๐ Need Help?
If you have any questions or want to suggest improvements, feel free to reach out via corporate@iotamine.com.