The official UserHub PHP SDK.
Stability: alpha
- PHP 8.2 or later
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.