userhub/sdk

v0.6.0 2024-03-28 18:31 UTC

This package is auto-updated.

Last update: 2024-03-28 19:34:23 UTC


README

Packagist Latest Version

The official UserHub PHP SDK.

Stability: alpha

Requirements

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