Skip to content

userhubdev/php-sdk

Repository files navigation

UserHub PHP SDK

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.