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)11.1k2PHPCI failing

Since Jul 17Pushed 9mo ago3 watchersCompare

[ 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 master Synced 2w 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

40

—

FairBetter than 86% of packages

Maintenance41

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 82.1% of commits — single point of failure

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

1513d ago

### Community

Maintainers

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

---

Top Contributors

[![tharangakothalawala](https://avatars.githubusercontent.com/u/4851255?v=4)](https://github.com/tharangakothalawala "tharangakothalawala (69 commits)")[![serhiyosetskiy](https://avatars.githubusercontent.com/u/32511458?v=4)](https://github.com/serhiyosetskiy "serhiyosetskiy (12 commits)")[![goappycodes](https://avatars.githubusercontent.com/u/11034429?v=4)](https://github.com/goappycodes "goappycodes (2 commits)")[![hub](https://avatars.githubusercontent.com/u/13063?v=4)](https://github.com/hub "hub (1 commits)")

### 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

[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[aws/aws-sdk-php

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

6.2k555.0M2.8k](/packages/aws-aws-sdk-php)[sylius/sylius

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

8.5k6.0M777](/packages/sylius-sylius)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19467.3M1.9k](/packages/drupal-core)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.7k441.1k8](/packages/theodo-group-llphant)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k53](/packages/civicrm-civicrm-core)

PHPackages © 2026

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