PHPackages                             acobster/t-hub-service - 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. acobster/t-hub-service

AbandonedArchivedProject[API Development](/categories/api)

acobster/t-hub-service
======================

Level-2 service integration with Atandra T-HUB

18[4 issues](https://github.com/acobster/t-hub-service/issues)PHP

Since Jan 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/acobster/t-hub-service)[ Packagist](https://packagist.org/packages/acobster/t-hub-service)[ RSS](/packages/acobster-t-hub-service/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

T-HUB Service
=============

[](#t-hub-service)

[![Atandra](https://camo.githubusercontent.com/deaa4cdc2da1266a888f1aa4eb099dcebeb6dfff575e023001c3373a8867d061/687474703a2f2f7777772e6174616e6472612e636f6d2f696d616765732f6c6f676f2e706e67)](https://camo.githubusercontent.com/deaa4cdc2da1266a888f1aa4eb099dcebeb6dfff575e023001c3373a8867d061/687474703a2f2f7777772e6174616e6472612e636f6d2f696d616765732f6c6f676f2e706e67)

[![Build Status](https://camo.githubusercontent.com/c6e2211d9f72d739b5ab6acbaa5f33572c6c2cd9291eef8b3a79a4f832b4fddf/68747470733a2f2f7472617669732d63692e6f72672f61636f62737465722f742d6875622d736572766963652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/acobster/t-hub-service)

Overview
--------

[](#overview)

An HTTP-service-style application for integrating a database-driven online store with the T-HUB desktop application. The included `index.php` file can serve as an independent web-facing script.

Currently the implementation is tied to a specific database structure. Maybe in the future it will become more configurable. Maybe.

**NOTE: This service implements only the first two levels of integration: `getOrders` and `updateOrdersShippingStatus` as decribed in the [T-HUB Service Spec](http://www.atandra.com/downloads/THUB_Service_Spec_43.pdf)**

Setup
-----

[](#setup)

Clone the repo:

```
$ git clone git@github.com:acobster/t-hub-service.git path/to/public/service/dir

```

Configure the service by adding a file called `thub_config.php` in the public service dir (it should be in the same directory as `index.php`):

```

```

To generate the password file, run:

```
php -r "echo password_hash('', PASSWORD_DEFAULT);" > /path/to/thub.passwd

```

Note that the `/path/to/thub.passwd` file must match the `passwordFile` path declared in the config.

Test it out!
------------

[](#test-it-out)

The code comes with a [Postman](https://www.getpostman.com/apps) collection for various operations against the service endpoint. Import `test/integration/THUB.postman_collection.json` into Postman to get started, and take one of the requests for a spin. **Careful! UpdateOrderShippingStatus has side-effects!**

Development
-----------

[](#development)

To start development, you must have [Lando](https://docs.devwithlando.io) installed. After cloning, just run:

```
lando start

```

inside the repo root.

### Running Tests

[](#running-tests)

There are unit and integration tests, all of which run inside the Lando environment:

```
lando unit # runs unit tests
lando e2e  # runs integration tests
lando test # runs entire test suite

```

### The Lando Postman environment

[](#the-lando-postman-environment)

The code comes with a Postman environment for testing with the collection mentioned above. Import it from `test/integration/lando.postman_environment.json`.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/320688?v=4)[Coby Tamayo](/maintainers/acobster)[@acobster](https://github.com/acobster)

---

Top Contributors

[![acobster](https://avatars.githubusercontent.com/u/320688?v=4)](https://github.com/acobster "acobster (1 commits)")

### Embed Badge

![Health badge](/badges/acobster-t-hub-service/health.svg)

```
[![Health](https://phpackages.com/badges/acobster-t-hub-service/health.svg)](https://phpackages.com/packages/acobster-t-hub-service)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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