SDKs
Experimental

PHP

Use the loams/loams Composer package and make the first call from PHP.

The PHP SDK needs PHP 8.2 or newer. Loams\Client exposes one service object per module: instances, live, approvals and devices.

Experimental

The loams/loams package 0.1.4 is on Packagist, split from sdks/php into the read-only repository ostrium-labs/loams-php by the release workflow. The SDK is experimental: its API can change between releases, so pin the exact version. Send changes to sdks/php in the main repository.

Examples and package: github.com/ostrium-labs/loams-php · Source: sdks/php

Install

composer require loams/loams:0.1.4

Quickstart

<?php
require 'vendor/autoload.php';

$client = new Loams\Client(
    getenv('LOAMS_ENDPOINT') ?: 'http://127.0.0.1:8080',
    new Loams\EnvTokenSource('LOAMS_API_KEY'),
);

// What this instance is; needs no credential.
$info = $client->instances->getInstance();
print_r($info);

Develop

composer install
vendor/bin/phpunit

On this page