PHPackages                             ziorwebdev/woopress-license-hub-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ziorwebdev/woopress-license-hub-client

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ziorwebdev/woopress-license-hub-client
======================================

WooPress License Hub Client

1.1.13(5mo ago)1243MITPHPPHP ^8.0CI passing

Since Dec 26Pushed 5mo agoCompare

[ Source](https://github.com/ziorwebdev/woopress-license-hub-client)[ Packagist](https://packagist.org/packages/ziorwebdev/woopress-license-hub-client)[ RSS](/packages/ziorwebdev-woopress-license-hub-client/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)DependenciesVersions (12)Used By (0)

WooPress License Hub Client
===========================

[](#woopress-license-hub-client)

**WooPress License Hub Client** is a WordPress client library for integrating license activation, deactivation, renewal, and validation into premium plugins and themes. It communicates with WooPress License Hub, a WordPress license manager plugin that acts as the license server, to handle all license lifecycle operations via API. This package is client-only and requires a configured WooPress License Hub installation.

---

Installation
------------

[](#installation)

Install via [Composer](https://getcomposer.org/):

```
composer require ziorwebdev/woopress-license-hub-client
```

---

Usage
-----

[](#usage)

After installing the package, include the following code inside your **WordPress plugin main file** (e.g., `your-plugin.php`):

```
if ( ! function_exists( 'your_prefix_license_hub_client_integration' ) ) {
	function _your_prefix_license_hub_client_integration() {
		global $_your_prefix_license_hub_client;

		if ( ! isset( $_your_prefix_license_hub_client ) ) {
			$_your_prefix_license_hub_client = woopress_license_hub_client(
				array(
					'api_url'           => 'https://your-site.com/wp-json/wc/woopress-license-hub/',
					'product_key'       => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
					'plugin_file'       => __FILE__,
					'plugin_name'       => 'Your Plugin Name',
					'license_url'       => 'admin.php?page=your-plugin-slug',
					'parent_menu_slug'  => 'your-parent-menu-slug',
					'license_menu_slug' => 'your-plugin-slug',
				)
			);
		}

		return $_your_prefix_license_hub_client;
	}

	_your_prefix_license_hub_client_integration();
}
```

---

Configuration
-------------

[](#configuration)

The `woopress_license_hub_client()` function accepts an **array of arguments** to configure your plugin’s license integration:

KeyRequiredDescription**`api_url`**✅ YesThe full REST API URL of your License Hub server. Example: `https://your-site.com/wp-json/wc/woopress-license-hub/`**`product_key`**✅ YesThe unique product key registered in your License Hub server. Replace `xxxxxxxxxxxxxxxxxxxxxxxxxxxxx` with your actual product key.**`plugin_file`**✅ YesTypically `__FILE__`. Used by WordPress to identify the plugin file where the client is running.**`plugin_name`**✅ YesThe display name of your plugin (e.g., `"My Awesome Plugin"`). This name will appear in the License page.**`license_url`**⚡ OptionalThe admin page URL where the license form should appear. Example: `admin.php?page=your-plugin-slug`. If you prefer adding it to **Settings → Your Plugin**, set this to: `options-general.php?page=your-plugin-slug`.**`parent_menu_slug`**⚡ OptionalDefines the parent menu in the WordPress admin. For a top-level menu, set your own slug (e.g., `your-parent-menu-slug`). If you want it under **Settings**, use `options-general.php`.**`license_menu_slug`**✅ YesThe slug for your plugin’s license menu. Typically the same as your plugin slug (e.g., `your-plugin-slug`).---

Example Setup
-------------

[](#example-setup)

If your plugin is named **"My Plugin"** and your plugin slug is `my-plugin`, a typical configuration looks like this:

```
$_your_prefix_license_hub_client = woopress_license_hub_client(
	array(
		'api_url'           => 'https://licenses.mysite.com/wp-json/wc/woopress-license-hub/',
		'product_key'       => 'myplugin_1234567890abcdef',
		'plugin_file'       => __FILE__,
		'plugin_name'       => 'My Plugin',
		'license_url'       => 'admin.php?page=my-plugin',
		'parent_menu_slug'  => 'options-general.php',
		'license_menu_slug' => 'my-plugin',
	)
);
```

This will create a **License page** under **Settings → My Plugin** in your WordPress admin.

---

Notes
-----

[](#notes)

- Always replace `your_prefix` with a unique prefix to avoid conflicts with other plugins.
- Make sure the `product_key` matches the product registered on your License Hub server.
- If you’re developing multiple plugins, each should have a **unique product key**.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance71

Regular maintenance activity

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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.

###  Release Activity

Cadence

Every ~2 days

Total

11

Last Release

161d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1219402?v=4)[Rey Calantaol](/maintainers/reygcalantaol)[@reygcalantaol](https://github.com/reygcalantaol)

---

Top Contributors

[![reygcalantaol](https://avatars.githubusercontent.com/u/1219402?v=4)](https://github.com/reygcalantaol "reygcalantaol (43 commits)")

---

Tags

client-librarywoopress-license-hub

### Embed Badge

![Health badge](/badges/ziorwebdev-woopress-license-hub-client/health.svg)

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

###  Alternatives

[prestashop/classic

Classic theme for develop PrestaShop version

506.6M3](/packages/prestashop-classic)[headsnet/domain-events-bundle

Integrates domain events into your Symfony application

4216.7k](/packages/headsnet-domain-events-bundle)

PHPackages © 2026

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