PMMPHub is now live! Discover premium PocketMine-MP resources or start selling today. Become a Creator
Buzz Shop logo
All products
Login

All articles

Product Licensing Guide

rotect your premium products using PMMPHub's built-in licensing system. Learn how to enable licensing, integrate the verification API, and manage customer licenses directly from your Creator Dashboard.

Last Updated: 29 June 2026

PMMPHub includes a built-in licensing system designed to help creators protect their premium products from unauthorized sharing while keeping integration simple.

Licensing is completely optional and can be enabled individually for each product from your Creator Dashboard.


1. What is PMMPHub Licensing?

PMMPHub Licensing is an integrated license management system that allows creators to verify purchases directly from their products.

When enabled, every purchase automatically receives a unique license key which can be verified through the PMMPHub Licensing API.

Creators can manage every license directly from their Creator Dashboard without writing their own licensing backend.


2. Features

PMMPHub Licensing includes:

  • Automatic license generation

  • One unique license key per purchase

  • HTTPS-secured verification

  • Built-in Creator Dashboard

  • Instant license revocation

  • License suspension

  • Activation management

  • Rate-limited API

  • Customer information

  • Purchase information

  • Product information

  • PHP integration example

  • Real-time verification


3. Enabling Licensing

Licensing is optional.

Creators may enable or disable licensing individually for every product they publish.

Products that do not require licensing may be distributed normally without using the Licensing API.


4. Activation Methods

Creators may choose how licenses are validated.

Supported activation methods include:

  • HWID Validation

  • IP Address Validation

  • UUID Validation

Creators may use one or multiple validation methods depending on their product.


5. License Limits

Every creator can configure licensing rules independently.

Creators may configure:

  • Maximum IP addresses

  • Maximum HWIDs

  • License expiration

  • Activation limits

  • Verification behaviour

There is no platform-imposed maximum activation limit.


6. Managing Licenses

The Creator Dashboard allows creators to:

  • View active licenses

  • View customer information

  • View purchase information

  • View activation history

  • View verification logs

  • Revoke licenses

  • Suspend licenses

  • Reset activations

  • Whitelist additional activations

Changes take effect immediately.


7. Verification API

License verification is performed through:

POST /api/v1/license/verify

Every request should contain a valid license key.

Additional identifiers such as HWID may also be supplied depending on your licensing configuration.


8. PHP Example

<?php

$payload = json_encode([
    'license_key' => getenv('LICENSE_KEY'),
    'hwid'        => getMachineId(), // Optional
]);

$ctx = stream_context_create([
    'http' => [
        'method'  => 'POST',
        'header'  => "Content-Type: application/json\r\n",
        'content' => $payload,
    ],
]);

$response = file_get_contents(
    'https://your-domain.com/api/v1/license/verify',
    false,
    $ctx
);

$data = json_decode($response, true);

if (!$data['success']) {
    die($data['message']);
}

echo "License Verified!";

9. Successful Response

A successful verification returns information about the license, customer and purchased product.

Example:

{
  "status": "active",
  "success": true,
  "message": "License key is valid",
  "license": {
    "license_key": "cf849418-d22d-42e4-9b56-121a8bf052e5",
    "status": "active",
    "expires_at": null,
    "issue_date": "2026-01-01T00:00:00Z",
    "max_ips": -1,
    "used_ips": [],
    "max_hwids": -1,
    "used_hwids": []
  },
  "customer": {
    "id": "...",
    "discord_id": "...",
    "customer_since": "2026-01-01T00:00:00Z"
  },
  "product": {
    "id": "...",
    "name": "Example Product",
    "enabled": true,
    "version": "1.0.0"
  }
}

10. Response Statuses

The Licensing API may return one of the following statuses:

Status

Description

active

License is valid.

inactive

License has been disabled.

expired

License has expired.

invalid

Invalid license key supplied.

not_found

License could not be found.

max_ips

Maximum IP limit reached.

hwid_required

HWID validation is required.

max_hwids

Maximum HWID limit reached.

error

Unexpected server error.


11. Security

PMMPHub Licensing is designed with security in mind.

The Licensing API includes:

  • HTTPS encrypted requests

  • Encrypted license storage

  • API rate limiting

  • Verification logging

  • Secure communication

  • Creator-controlled licensing rules


12. Creator Dashboard

The Creator Dashboard provides complete control over your licenses.

Creators can:

  • Search licenses

  • View customer information

  • View Discord account (if linked)

  • View activation history

  • Suspend licenses

  • Revoke licenses

  • Reset activations

  • Configure licensing settings

  • Manage every licensed product from a single dashboard


13. Best Practices

For the best level of protection we recommend:

  • Verify licenses whenever your application starts.

  • Enable HWID validation where appropriate.

  • Do not embed secret API credentials directly into public source code.

  • Obfuscate your licensing implementation where appropriate.

  • Handle API failures gracefully.

  • Keep your integration up to date.

No licensing system can completely prevent piracy, but proper implementation significantly increases the difficulty of bypassing license verification and helps identify unauthorized redistribution.


14. Frequently Asked Questions

Is licensing required?

No. Licensing is optional and can be enabled per product.

Can I use my own licensing system?

Yes. Creators are free to use their own licensing solution if they prefer.

Can I revoke a license?

Yes. Licenses can be revoked instantly from the Creator Dashboard.

Can I suspend a license?

Yes.

Can I reset activations?

Yes.

Can customers transfer licenses?

No.

Is the API backwards compatible?

PMMPHub aims to maintain backwards compatibility wherever reasonably possible.


15. Future Improvements

PMMPHub plans to continue expanding the licensing platform with additional creator tools and security features.

Future improvements may include:

  • Official PHP SDK

  • Built-in obfuscation tools

  • Enhanced analytics

  • Additional verification methods

  • Improved dashboard management


16. Changelog

Changes to the Licensing API and documentation will be published here as new versions become available.

Join the community

Talk to our community or create a ticket on our Discord server

Welcome to PMMPHub

Logo

© 2026 HXStudios. All Rights Reserved.

PayPalGoogle PayiDEALLinkMastercardVisaWise