This package provides a PHP client for ArrowSphere Cloud's public API. It should be the only way to make calls to ArrowSphere Cloud's API with PHP code.
To use this package, you need valid access to ArrowSphere Cloud, with a valid API key.
Install the latest version with
$ composer require arrowsphere/public-api-client
<?php
use ArrowSphere\PublicApiClient\PublicApiClient;
const URL = 'https://your-url-to-arrowsphere.example.com';
const API_KEY = 'your API key in ArrowSphere';
$client = (new PublicApiClient())
->setUrl(URL)
->setApiKey(API_KEY)
->setDefaultHeaders([
'myHeader' => 'myValue',
])
;
$whoami = $client->getWhoamiClient()->getWhoami();
echo "Hello " . $whoami->getCompanyName();