The PHP client for the HypeLabs Connect API.
- PHP 8.1 or later
- A HypeLabs Connect API key (
hl_live_…)
The client authenticates with an API key, so run it server-side (a backend or a job) — never ship your key to a browser or a client app.
-
Add the package:
composer require hypelabs-llc/connect
-
Create your organization on the HypeLabs Console and generate an API key.
Create a client with your API key and call the API. Every call returns a promise resolving to typed models.
<?php
require 'vendor/autoload.php';
use function HypeLabs\Connect\Sdk\createConnectClient;
$client = createConnectClient(getenv('CONNECT_API_KEY'));
$proxies = $client->proxies()->get()->wait();
foreach ($proxies ?? [] as $proxy) {
echo $proxy->getId() . PHP_EOL;
}The API is authenticated with the X-Api-Key header, wired up internally — you never touch the Kiota plumbing.
