Skip to content
hypelabs-llcPublic

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HypeLabs

HypeLabs Connect SDK

The PHP client for the HypeLabs Connect API.

Requirements

  • 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.

Install

  1. Add the package:

    composer require hypelabs-llc/connect
  2. Create your organization on the HypeLabs Console and generate an API key.

Usage

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.

Contributors

Languages