Official PHP SDK for Iotamine Cloud API

Maintainers

Package info

github.com/piyushladhar/iotamine-php-sdk

pkg:composer/iotamine/sdk

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2025-07-28 06:40 UTC

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.json manually 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

๐Ÿ”’ 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

๐Ÿค 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.