PHPackages                             hub/hubid-api-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. hub/hubid-api-client

ActiveLibrary[API Development](/categories/api)

hub/hubid-api-client
====================

Hub Culture API sdk

1.8.4(4y ago)31.1k

Since Jul 17Compare

[ Source](https://github.com/hub/hubid-api-client)[ Packagist](https://packagist.org/packages/hub/hubid-api-client)[ RSS](/packages/hub-hubid-api-client/feed)WikiDiscussions Synced 3d ago

READMEChangelog (4)Dependencies (3)Versions (21)Used By (0)

Hub Culture API [![hubculture logo](https://camo.githubusercontent.com/f52414307f701d5d36e3152663ca611d90f66ee43772f9697fc97c05f688f5d5/68747470733a2f2f68756263756c747572652e636f6d2f696d616765732f6c6f676f2d6875622d636c6561722e706e67)](https://camo.githubusercontent.com/f52414307f701d5d36e3152663ca611d90f66ee43772f9697fc97c05f688f5d5/68747470733a2f2f68756263756c747572652e636f6d2f696d616765732f6c6f676f2d6875622d636c6561722e706e67)
================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#hub-culture-api-)

**Wiki**

**Swagger** [api.hubculture.com](https://api.hubculture.com/)

Usage
=====

[](#usage)

Include the library with composer.

```
composer require hub/hubid-api-client

```

Authentication
--------------

[](#authentication)

Refer to the  for obtaining the private and public keys.

```
include '/vendor/autoload.php';

use Hub\HubAPI\HubClient;

$redirectUrl = 'http://localhost/callback.php';
$config = array(
    // @see https://hubculture.com/developer/home
    'private_key' => '',
    'public_key' => '',
    'client_id' => 12345,
);

$hubClient = new HubClient($config);

$redirectLoginHelper = $hubClient->getRedirectLoginHelper();
$redirectLoginHelper->getAccessToken($redirectUrl);
```

User Service
------------

[](#user-service)

Retrieving a user by id

```
include '/vendor/autoload.php';

use Hub\HubAPI\Service\UserService;

$config = array(
    'private_key' => '',
    'public_key' => '',
    'token' => '',
);

$service = new UserService($config);
$user = $service->getUserById(18495);
var_dump($user);
```

Examples
========

[](#examples)

Please run the following command to run a PHP server serving examples.

```
HUBID_PRIVATE_KEY=[your-private-key] HUBID_PUBLIC_KEY=[your-public-key] make demo
```

Browse to .

You may look at examples under `examples` directory.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity72

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~79 days

Recently: every ~200 days

Total

19

Last Release

1468d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/185e3ac9d41993e06b1cc769e81f3145e87071c90da1bcc3f548167b193917d5?d=identicon)[hubculture](/maintainers/hubculture)

### Embed Badge

![Health badge](/badges/hub-hubid-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/hub-hubid-api-client/health.svg)](https://phpackages.com/packages/hub-hubid-api-client)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M719](/packages/sylius-sylius)[google/apiclient

Client library for Google APIs

9.8k205.9M1.1k](/packages/google-apiclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[googleads/googleads-php-lib

Google Ad Manager SOAP API Client Library for PHP

68010.5M25](/packages/googleads-googleads-php-lib)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
