UpCloud PHP SDK

UpCloud PHP SDK

A typed PHP client for the UpCloud API. Browse service methods, request parameters, and PHP usage examples.

Getting started

Requires PHP 8.1 or later and Composer.

composer require upcloudltd/upcloud-php-api
<?php

require __DIR__ . '/vendor/autoload.php';

$client = new \Upcloud\UpcloudClient(token: getenv('UPCLOUD_TOKEN'));
$account = $client->account->details();

Set UPCLOUD_TOKEN to your API token before running the example.

Installation, authentication, and error handling

Latest follows the generated SDK on main, including prerelease development. Stable Composer installs do not opt into alpha versions.

Legacy v3 source and documentation

API reference

Browse the latest reference. Choose a service below to jump to its methods. Expand a method to see its description, usage, and parameters.

Services

Tagged releases

Versioned SDK reference snapshots. The v0.0.x snapshots predate migration and are not legacy Packagist v1-v3 releases.