userhub/sdk

v0.7.1 2024-11-30 19:02 UTC

This package is auto-updated.

Last update: 2025-03-29 01:08:14 UTC


README

Packagist Latest Version

The official UserHub PHP SDK.

Stability: alpha

Requirements

  • PHP 8.2 or later

Getting Started

Install SDK

composer require userhub/sdk

Example

<?php

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

use UserHub\AdminApi;

$adminApi = new AdminApi('sk_123...');

$res = $adminApi->users->list(pageSize: 5);

foreach ($res->users as $user) {
    echo $user->id.' '.$user->displayName.PHP_EOL;
}

See the examples directory for more examples.